Tab

TATab

Creates a tab control on the form.

Properties:
ActivePageThis controls which page will be active by default.
AlignThis is a design only property and will not generate any code. It helps to keep controls alignment while editing.
ColorThis property define control background color.
ColumnsContain ListView header captions (for use in report style).
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.
ImagesAn attached ImageList control. This is an icons of Pages.
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.
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.

Page

After placing Tab control on the design form, you have to create one or more pages (pages in Koda terminology). To do that, click with right mouse button on Tab control, then click on the “Add Page” item. A new page will be added.

When working with control, note the difference between whole tab selection and current page selection. Properties for Tab control and it's pages are different!

To delete a page first click on the current page (note page selection) and then select “Delete” from context menu or just press Del key on the keyboard.

Each page has its own properties:

Individual Page Properties:
CaptionThis property contains text that will be visible on form.
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.
ImageIndexThis is index of image in the associated ImageList control. Default is -1.
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.

Remarks:

Only one control of this type can be placed on form (this is Autoit limitation).

If one of pages have “Hint” property set, Koda will always generate GUICtrlSetTip for first page - this is the only way tp correct setting tip to previous pages. Also if tip is set for one of pages, tip of main tab control will not be shown.

Related:

None.