Updated docs
There is still stuff to do
This commit is contained in:
38
docs/objects/Menubar/setScrollable.md
Normal file
38
docs/objects/Menubar/setScrollable.md
Normal file
@@ -0,0 +1,38 @@
|
||||
## setScrollable
|
||||
Makes it possible to scroll while the mouse is over the menubar
|
||||
|
||||
#### Parameters:
|
||||
1. `boolean` If the menubar should be scrollable or not
|
||||
|
||||
#### Returns:
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage:
|
||||
* Creates a new menubar and makes it scrollable
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aMenubar = mainFrame:addMenubar():setScrollable(true)
|
||||
:addItem("1. Entry")
|
||||
:addItem("2. Entry")
|
||||
:addItem("3. Entry")
|
||||
:addItem("4. Entry")
|
||||
:addItem("5. Entry")
|
||||
:addItem("6. Entry")
|
||||
:addItem("7. Entry")
|
||||
:addItem("8. Entry")
|
||||
:addItem("9. Entry")
|
||||
|
||||
```
|
||||
```xml
|
||||
<menubar scrollable="true">
|
||||
<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>
|
||||
<item><text>7. Entry</text></item>
|
||||
<item><text>8. Entry</text></item>
|
||||
<item><text>9. Entry</text></item>
|
||||
</menubar>
|
||||
```
|
||||
Reference in New Issue
Block a user