MenuBar
From TrillWiki
Menubars are used in lots of windows - you can include them in any. They function as normal windows-type menus, and consist of a few settings and a resizeable button. The basic control code looks like this:
- <control name="<name>" type="menubar">
- <color name="background" red="" green="" blue=""/>
- <settings name="button-type" value="<name of resizeable button control"/>
- <settings name="button-spacing-x" value=""/>
- <settings name="button-spacing-y" value=""/>
- </control>
The "name" as always is the name you wish to give your button.
The background colo(u)r is the colo(u)r that will fill any part of your menubar not covered by buttons.
The "button-type" is the name of the resizeable button which will be placed all over your menu as the "options". Make sure it has a "text" icontrol inside it.
The final two options set the horizontal and vertical spacing between the buttons.
The menubar control is only available in 1.0+.
