Syntax 3: For Tab controls
Description
Occurs when the user clicks on the tab portion of a Tab
control.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_tcnclicked |
Tab |
Arguments
|
Argument |
Description |
|---|---|
|
index |
Integer by value (the index of the tab page the |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
The Clicked event occurs when the mouse button is released.
When the user clicks in the display area of the Tab control, the
tab page user object (not the Tab control) gets a Clicked event.
The Clicked event can occur during a double-click, in addition to
the DoubleClicked event.
In addition to the Clicked event, the SelectionChanging and
SelectionChanged events can occur when the user clicks on a tab page
label. If the user presses an arrow key to change tab pages, the Key
event occurs instead of Clicked before SelectionChanging and
SelectionChanged.
Examples
This code makes the tab label bold for the fourth tab page
only:
|
1 2 3 4 5 |
IF index = 4 THEN This.BoldSelectedText = TRUE ELSE This.BoldSelectedText = FALSE END IF |
See also