TabTriggerEvent
PowerScript function
Description
Triggers the specified event for each tab page in a Tab control,
which executes the scripts immediately in the index order of the tab
pages.
Applies to
Tab controls
Syntax
|
1 |
tabcontrolname.TabTriggerEvent ( event {, word, long } ) |
|
Argument |
Description |
|---|---|
|
tabcontrolname |
The name of the Tab control for which you want to trigger |
|
event |
A value of the TrigEvent enumerated datatype that |
|
word (optional) |
A long value to be stored in the WordParm property of the |
|
long (optional) |
A long value or a string that you want to store in the |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs, if the event is
not a valid event for the tab page user object, or if a script does not
exist for the event.
Examples
Suppose tab_address contains several tab pages inherited from
uo_list and uo_list has a user event called ue_display. This statement
executes immediately the script for ue_display for each the tab pages in
tab_address:
|
1 |
tab_address.TabTriggerEvent("ue_display") |
See also