Warning: Declaration of action_plugin_keyboard::register(&$contr) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/u0407502/koda.darkhost.ru/wiki/lib/plugins/keyboard/action.php on line 21

Warning: Declaration of action_plugin_columns::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/u0407502/koda.darkhost.ru/wiki/lib/plugins/columns/action.php on line 0

Warning: Declaration of action_plugin_translation::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/u0407502/koda.darkhost.ru/wiki/lib/plugins/translation/action.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0407502/koda.darkhost.ru/wiki/lib/plugins/keyboard/action.php:21) in /var/www/u0407502/koda.darkhost.ru/wiki/inc/auth.php on line 542

Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0407502/koda.darkhost.ru/wiki/lib/plugins/keyboard/action.php:21) in /var/www/u0407502/koda.darkhost.ru/wiki/inc/actions.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0407502/koda.darkhost.ru/wiki/lib/plugins/keyboard/action.php:21) in /var/www/u0407502/koda.darkhost.ru/wiki/lib/tpl/dokuwiki/main.php on line 12
Button [Koda]

User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:control_button

Button

{|class=“cboxtable”

class=“cboxcell1”
class=“cboxcell2”

Creates a button control on the form.

#remarks_header[Properties:]#

Caption
ContextMenu
Cursor
EnabledFalse generates <color blue>GUICtrlSetState(-1, $GUI_DISABLE)</color>
Font
Left,Top
Width,Height
HintText that appears when cursor hovers over control. Generates call to <color blue>GUICtrlSetTip</color>
HotKey
Name
OnClickGenerates (in Message Loop mode) a <color blue>Case</color> or (in OnEvent mode) a call to <color blue>GUISetOnEvent</color> and a skeleton event function. Double-click to right to open Events Editor
Picture
Resizing
TabOrderSequence in which controls are selected with the Tab and Shift+Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the TabOrder Visual Editor: press Ctrl+T to open it.
VisibleIf False, generates <color blue>GUICtrlSetState(-1, $GUI_HIDE)</color>

#remarks_header[Styles:]#

BS_PUSHBUTTONdefault style of button
BS_DEFPUSHBUTTONHeavy black border. For dialog box, pressing Enter presses default button
BS_PUSHBOXButton without face and frame
BS_LEFTLeft-aligns the text, word-wrapping if BS_MULTILINE is checked
BS_RIGHTCenter-aligns text, word-wrapping if BS_MULTILINE is checked
BS_CENTERRight-aligns text, word-wrapping if BS_MULTILINE is checked
BS_TOPPlaces text at top of button
BS_BOTTOMPlaces text at bottom of button
BS_VCENTERVertically centers text in button
BS_MULTILINEWraps text to multiple lines if text doesn't fit on one line
BS_NOTIFYEnables button to send BN_KILLFOCUS and BN_SETFOCUS notification messages to Form
BS_FLATButton appears two-dimensional
WS_TABSTOPControl can be selected with Tab and Shift+Tab
WS_HSCROLL
WS_VSCROLL
WS_BORDER
WS_CLIPSIBLINGS

#remarks_header[Extra Styles:]#

WS_EX_CLIENTEDGE
WS_EX_STATICEDGE

#remarks_header[Remarks:]#

For colored buttons you can set neither pictures nor styles. This is limitation of the current Autoit coloring code implementation.

#remarks_header[Related:]#

None

koda/en/documentation/control_button.txt · Last modified: 2014/07/10 10:47 (external edit)