791 B
791 B
setOffset
Sets the offset of the menubar (the same as you would scroll) - default is 0
Parameters:
numberThe offset value
Returns:
objectThe object in use
Usage:
- Creates a default menubar with 6 entries and sets the offset to 3.
local main = basalt.createFrame()
local aMenubar = main:addMenubar()
:addItem("1. Entry")
:addItem("2. Entry")
:addItem("3. Entry")
:addItem("4. Entry")
:addItem("5. Entry")
:addItem("6. Entry")
:setOffset(3)
<menubar offset="3">
<item><text>1. Entry</text></item>
<item><text>2. Entry</text></item>
<item><text>3. Entry</text></item>
<item><text>4. Entry</text></item>
<item><text>5. Entry</text></item>
<item><text>6. Entry</text></item>
</menubar>