.topic widget.button .title Button .toc 1 Button .index Button .index wgtButton .h2 Button A push button with a text label. Fires onClick when pressed and released. Supports keyboard activation via accelerator keys. Header: widgets/widgetButton.h .h3 Creation .code WidgetT *btn = wgtButton(parent, "OK"); .endcode .h3 Macro .table Macro Description ----- ----------- wgtButton(parent, text) Create a push button with the given label text. .endtable .h3 Properties Uses common WidgetT properties. Set accelKey for keyboard shortcut. Use wgtSetText() / wgtGetText() to change the label. .h3 Events .table Callback Description -------- ----------- onClick Fires when the button is clicked (press + release). .endtable