Construct the widget.
Construct the widget.
Set the widget text.
Get the widget text.
Set the image for this widget.
Change the position of the image in relation to the text.
Set the text character width.
Destroy this widget.
Mixin common commands.
auto menu = new Menu() .addEntry("Entry 1", delegate(CommandArgs args){ ... }) .addEntry("Entry 2", delegate(CommandArgs args){ ... }); auto menuButton = new MenuButton("Text", menu) .pack();
Additional events that can also be bound to using the bind method.
<<Invoke>>, <<PrevWindow>>, <Alt-Key>, <B1-Leave>, <Button-1>, <ButtonRelease-1>, <Enter>, <Key-F10>, <Key-Tab>, <Key-space>, <Leave>,
Styles: Menu button widgets support the Toolbutton style in all standard themes, which is useful for creating widgets for toolbars.
A menu button widget displays a textual label and/or image, and displays a menu when pressed.