>>-anAdvancedControl~AddTabControl(--id--,--+---------------+--,--x--> +-attributeName-+ >--,--y--,--cx--,--cy--+------------------------------+--)---------->< | +-----------------+ | | V | | +-,--"----+-ALIGNRIGHT--+-+--"-+ +-BUTTONS-----+ +-FIXED-------+ +-FOCUSNEVER--+ +-FOCUSONDOWN-+ +-ICONLEFT----+ +-LABELLEFT---+ +-MULTILINE---+ +-GROUP-------+ +-HIDDEN------+ +-NOTAB-------+ +-NOBORDER----+
The AddTabControl method adds a tab control to the dialog and connects it with a data attribute. For further information on tab controls, refer to TabControl Class.
The arguments are:
A unique identifier assigned to the control. You need the ID to refer to this control in other methods.
The name of the data attribute associated with the dialog item. See ConnectTreeControl to get information on what happens when this argument is omitted.
The position of the upper left corner of the control relative to the dialog, in dialog units.
The width and height of the dialog item, in dialog units.
This argument determines the behavior and style of the dialog item and can be one or more of the following:
Right-justifies tabs. By default, tabs are left-justified within a row.
Modifies the appearance of the tabs to look like buttons.
Makes all tabs equal in width. You cannot use this option with the ALIGNRIGHT option.
A tab never receives the input focus.
A tab receives the input focus when clicked (typically with option BUTTONS).
Forces the icon to the left, but leaves the tab label centered. By default, the control centers the icon and label, with the icon being to the left of the label.
Left-aligns both the icon and the label.
Causes a tab control to display several rows of tabs, enabling all tabs to be displayed at the same time.
Specifies the first control of a group of control in which the user can move from one control to the next with the arrow keys.
The control is initially hidden.
The tab key cannot be used to move to this control.
No border is drawn around the control.
The following example creates a tab control with ID PAGES and multiline capability. Its data (the selected tab) is associated with attribute CURRENTPAGE.
MyDialog~AddTabControl("PAGES","CURRENTPAGE", 10, 120, 200, 20, , "MULTILINE FIXED")