Construct the widget.
Construct the widget.
Construct the widget.
Construct the widget.
Mixin common commands.
Add a command to a widget.
Remove a previously set command.
Make the widget the default one on the interface.
Invoke the command associated with 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 button = new Button(new Png!("image.png"), "Text") .setCommand(delegate(CommandArgs arg){ ... }) .pack();
These are injected common commands that can also be used with this widget.
Additional events that can also be bound to using the bind method.
<<Invoke>>, <<PrevWindow>>, <Alt-Key>, <B1-Enter>, <B1-Leave>, <Button-1>, <ButtonRelease-1>, <Enter>, <Key-F10>, <Key-Tab>, <Key-space>, <Leave>,
Styles: Button widgets support the Toolbutton style in all standard themes, which is useful for creating widgets for toolbars.
A button widget displays a textual label and/or image, and evaluates a command when pressed.