Table of Contents

Form

TAForm

Form is creating when selecting menu New or pressing toolbar button New form.

Properties:
CaptionThis property contains text that will be visible on form.
ClientHeightHeight of client area in pixels.
ClientWidthWidth of client area in pixels.
ColorThis property define control background color.
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.
DescriptionAllowed to enter form description. This text is for informational use only, like in templates gallery.
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.
IconAttach an icon that visible in the form caption. Open Picture editor.
MenuAllow to attach a Menu to the form. Menu must be created first.
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.
OnClose
OnMaximize
OnMinimize
OnRestore
Standard control event.
ParentFormPlace here name of other form (without $), that will act as parent for current form.Useful when creating child windows.
PictureAssign an image to button. This disables caption, because AutoIt does not support both picture and text in a button.
PositionForm position:
poDesigned - absolute position
poDesktopCenter - in desktop center
poFixed - generated form position independent from position of design window
ResizingThis property define contol resizing.
TrayMenuAllow to attach a TrayMenu to the form. TrayMenu must be created first.
VisibleThis is True by default. Set it to False to generate hidden control. This will add GUICtrlSetState(-1, $GUI_HIDE) line.

Remarks:

None.

Related:

None.

koda/documentation/control_form.txt · Last modified: 2010/03/07 14:17 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