Table of Contents

Button

TAButton

Creates a button control on the form.

Properties:
CaptionThis property contains text that will be visible on form.
ContextMenuAllow to attach a ContextMenu to the control. ContextMenu must be created first.
CursorThis property define what cursor will be showed when mouse over the control.
EnabledThis is True by default. Set it to False to generate disabled control. This will add GUICtrlSetState(-1, $GUI_DISABLE) line.
FontThis property allow to set font properties - color, font face, size and bold/italic/underline/strikeout attributes.
Left,TopPosition of control relative to it's parent.
Width,HeightSize of control in pixels.
HintThis property containing text that will appear when mouse cursor is over control. This will add GUICtrlSetTip(-1, "Your hint text") line.
HotKeyThis property allow to set hotkey for this item.
NameUnique name of control, this defines the name of variable where control ID will be kept. It also can be empty, when no variable will be created.
OnClickStandard control event.
PictureAssign an image to button. This disables caption, because AutoIt does not support both picture and text in a button.
ResizingThis property define contol resizing.
TabOrderThis property define in which order controls will be created. This is meaningful when you want switch between controls with Tab key. You also can use TabOrder Visual Editor. Tab order starts from 0.
VisibleThis is True by default. Set it to False to generate hidden control. This will add GUICtrlSetState(-1, $GUI_HIDE) line.

Remarks:

Note that for colored button you can't set pictures nor styles. This is limitation of the current Autoit coloring code implementation.

Related:

None.

koda/documentation/control_button.txt · Last modified: 2010/03/06 23:28 by loopback
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0