Tab control
A Tab control contains tab pages, which are user objects that
contain controls. Tab pages can be defined within the Tab control or they
can be defined in the User Object painter and inserted into the Tab
control.
Each tab page can have its own label, picture, and background
color.
All tab pages share the same font settings.
Tab Position controls where the tabs on the tab pages are displayed.
Tabs can be displayed on any one of the four edges of the Tab control.
They can also be displayed on opposite edges with the tabs before or after
the selected tab jumping to the other edge.
Properties
|
Tab property |
Datatype |
Description |
|---|---|---|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
Alignment (enumerated) |
Specifies the alignment of the text labeling all Left! Center! Right! |
|
|
Long |
Specifies the numeric value of the background |
|
|
Boolean |
Specifies whether the text for the selected tab is TRUE — The text on the selected FALSE — The text on the selected tab |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to TRUE — Moves to the top. FALSE — |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Boolean |
Specifies whether PowerBuilder creates graphical TRUE — Graphical FALSE — (Default) Graphical |
|
|
Control[ ] |
UserObject |
Specifies the array of tab pages within the Tab |
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
|
String |
Specifies the name of the stock icon or the file When the user drags the control, the |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Can be FALSE — Cannot be |
|
|
String |
Specifies the name of the typeface used for the |
|
|
Boolean |
Specifies whether tabs have a fixed width, meaning TRUE — Tab width is fixed; the width is FALSE — Tab |
|
|
Boolean |
Specifies whether each tab gets focus when the user TRUE — The tab the user FALSE — The tab does not get In either case, the selected tab page comes The dotted focus rectangle appears on |
|
|
FontCharSet (enumerated) |
Specifies the character set for the text labels on |
|
|
FontFamily (enumerated) |
Specifies the font family (type style) for the text AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font for text Default! Fixed! Variable! |
|
|
Integer |
Specifies the height of the control, in |
|
|
Boolean |
Specifies whether the text on the tabs is italic. TRUE — Text labels are FALSE — Text labels are not |
|
|
Boolean |
Specifies whether the tabs can appear in more than TRUE — If there is not room FALSE — If there is not room for all |
|
|
Boolean |
Specifies whether the tab labels are drawn TRUE — FALSE — Text runs along the edge of |
|
|
Boolean |
Specifies whether a picture that is part of the tab TRUE — The picture is on the FALSE — The picture is on the |
|
|
String |
Specifies the name of the stock pointer or the file |
|
|
Boolean |
Specifies whether PowerTipText for a tab page is TRUE — FALSE — No PowerTips are |
|
|
Boolean |
Specifies whether tabs are stretched so that they TRUE — Tabs remain the size determined by FALSE |
|
|
Integer |
Specifies the index number of the selected tab. The |
|
|
Boolean |
Specifies whether the picture selected for each tab TRUE — The picture for FALSE — No pictures |
|
|
Boolean |
Specifies whether the text specified for each tab TRUE — The text for FALSE — The text for each |
|
|
Integer |
Specifies the tab value of the control within the |
|
|
TabPosition (enumerated) |
Specifies where the tabs appear around the Tab
|
|
|
String |
Specifies the tag value assigned to the |
|
|
Integer |
Specifies the size of the text in the control, in |
|
|
Boolean |
Specifies whether the text on the tabs is TRUE — Text labels are FALSE — Text labels are not |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Is visible. FALSE — Is not |
|
|
Integer |
Specifies the stroke weight of the text in the |
|
|
Integer |
Specifies the width of the control, in PowerBuilder |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Integer |
Specifies the Y position (the distance from the top |
Events
|
Tab Event |
Occurs |
|---|---|
|
When the user clicks in the Tab control, except in |
|
|
When the object is created, immediately before the |
|
|
When the object is destroyed, immediately after the |
|
|
When the user double-clicks in the Tab control, |
|
|
When a dragged control is dropped in the tab area |
|
|
When a dragged control enters the control, |
|
|
When a dragged control leaves the control, |
|
|
When a dragged control is within the control, but |
|
|
Just before the control receives focus (before it |
|
|
When the user presses the F1 key or drags the |
|
|
When the user presses a key. |
|
|
When the control loses focus (becomes |
|
|
When a Windows message occurs that is not a |
|
|
When the user clicks with the right mouse button in |
|
|
When the user double-clicks with the right mouse |
|
|
Just after the selection changes to another tab. |
|
|
Just before the selection changes to another tab. |
Functions
|
Tab function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Closes a tab page that was opened with the OpenTab |
|
|
Integer |
Starts or ends dragging of the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the parent of the Tab |
|
|
Integer |
Makes the control invisible. |
|
|
Integer |
Moves the control to a specified |
|
|
Integer |
Moves a tab to a new position in the order of |
|
|
Integer |
Opens the specified user object as a tab page, |
|
|
Integer |
Opens the user object as a tab page, making its |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Integer |
Adds the specified event to the end of the event |
|
|
Integer |
Prints the contents of the control. You can specify |
|
|
Integer |
Changes the size of the tab page to the size |
|
|
Integer |
Selects a tab page. |
|
|
Integer |
Sets focus to the Tab control. |
|
|
Integer |
Specifies the control’s position in the |
|
|
Integer |
Controls automatic redrawing of the |
|
|
Integer |
Makes the control visible. |
|
|
Integer |
Adds an event to the end of the message queues for |
|
|
Integer |
Sends an event to every tab page and, for each |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |