TabPostEvent PowerScript function
Description
Posts the specified event for each tab page in a Tab control,
adding them to the end of the event queues for the tab page user
objects.
Controls
Tab controls
Syntax
|
1 |
<span>tabcontrolname</span>.<span>TabPostEvent</span> ( <span>event</span> {, <span>word</span>, <span>long</span> } ) |
|
Argument |
Description |
|---|---|
|
tabcontrolname |
The name of the Tab control for which |
|
event |
A value of the TrigEvent enumerated datatype |
|
word |
A long value to be stored in the WordParm |
|
long |
A long value or a string that you want |
Return Values
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 posts the event ue_display for
each the tab pages in tab_address:
|
1 |
tab_address.<span>TabPostEvent</span>("ue_display") |