Add frame min/max size methods

This commit is contained in:
Kenny Shields 2014-01-07 20:06:51 -05:00
parent 0960a2a08d
commit 2b1627d2a0
2 changed files with 90 additions and 0 deletions

View File

@ -2,6 +2,16 @@
Version 0.9.7 - Alpha (Release Date TBD)
================================================
[ADDED] a new base method: textinput(text)
[ADDED] a new frame method: SetResizable(bool)
[ADDED] a new frame method: GetResizable()
[ADDED] a new frame method: SetMinWidth(width)
[ADDED] a new frame method: GetMinWidth()
[ADDED] a new frame method: SetMaxWidth(width)
[ADDED] a new frame method: GetMaxWidth()
[ADDED] a new frame method: SetMinHeight(height)
[ADDED] a new frame method: GetMinHeight()
[ADDED] a new frame method: SetMaxHeight(height)
[ADDED] a new frame method: GetMaxHeight()
[ADDED] a new progressbar method: SetText(text)
[ADDED] a new progressbar method: GetText()
[ADDED] a new tabs method: SetButtonAreaX(x)

View File

@ -965,4 +965,84 @@ function newobject:GetResizable()
return self.canresize
end
--[[---------------------------------------------------------
- func: SetMinWidth(width)
- desc: sets the object's minimum width
--]]---------------------------------------------------------
function newobject:SetMinWidth(width)
self.minwidth = width
end
--[[---------------------------------------------------------
- func: GetMinWidth()
- desc: gets the object's minimum width
--]]---------------------------------------------------------
function newobject:GetMinWidth()
return self.minwidth
end
--[[---------------------------------------------------------
- func: SetMaxWidth(width)
- desc: sets the object's maximum width
--]]---------------------------------------------------------
function newobject:SetMaxWidth(width)
self.maxwidth = width
end
--[[---------------------------------------------------------
- func: GetMaxWidth()
- desc: gets the object's maximum width
--]]---------------------------------------------------------
function newobject:GetMaxWidth()
return self.maxwidth
end
--[[---------------------------------------------------------
- func: SetMinHeight(height)
- desc: sets the object's minimum height
--]]---------------------------------------------------------
function newobject:SetMinHeight(height)
self.minheight = height
end
--[[---------------------------------------------------------
- func: GetMinHeight()
- desc: gets the object's minimum height
--]]---------------------------------------------------------
function newobject:GetMinHeight()
return self.minheight
end
--[[---------------------------------------------------------
- func: SetMaxHeight(height)
- desc: sets the object's maximum height
--]]---------------------------------------------------------
function newobject:SetMaxHeight(height)
self.maxheight = height
end
--[[---------------------------------------------------------
- func: GetMaxHeight()
- desc: gets the object's maximum height
--]]---------------------------------------------------------
function newobject:GetMaxHeight()
return self.maxheight
end