Added options to adjust the vertical and horizontal growth direction

This commit is contained in:
Hendrik Leppkes
2009-02-21 14:58:17 +01:00
parent 4529c41327
commit a1189dbad8
3 changed files with 48 additions and 3 deletions
+21
View File
@@ -119,6 +119,27 @@ function ButtonBar:GetHideHotkey()
return self.config.hidehotkey
end
function ButtonBar:SetHGrowth(value)
self.config.position.growHorizontal = value
self:AnchorOverlay()
self:UpdateButtonLayout()
end
function ButtonBar:GetHGrowth()
return self.config.position.growHorizontal
end
function ButtonBar:SetVGrowth(value)
self.config.position.growVertical = value
self:AnchorOverlay()
self:UpdateButtonLayout()
end
function ButtonBar:GetVGrowth()
return self.config.position.growVertical
end
ButtonBar.ClickThroughSupport = true
function ButtonBar:SetClickThrough(click)
if click ~= nil then