The OpenD Programming Language

Button

Creates a push button with unbounded size. When it is clicked, it emits a triggered event.

More...

Constructors

this
this(ImageLabel label, Widget parent)

Creates a push button with the given label, which may be an image or some text.

this
this(string label, Widget parent)

Members

Functions

label
void label(string l)
label
string label()

Variables

triggersOnMultiClick
bool triggersOnMultiClick;

If true, this button will emit trigger events on double (and other quick events, if added) click events as well as on normal single click events.

Detailed Description

Please note that the ampersand (&) character gets special treatment as described on this page https://docs.microsoft.com/en-us/windows/win32/menurc/common-control-parameters?redirectedfrom=MSDN

Use double-ampersand, "First && Second", to be displayed as a single one, "First & Second".

Meta

History

The ampersand behavior was always the case on Windows, but it wasn't until June 15, 2021 when Linux was changed to match it and the documentation updated to reflect it.