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.
Applies to
Tab controls
Syntax
|
1 |
tabcontrolname.TabPostEvent ( event {, word, long } ) |
|
Argument |
Description |
|---|---|
|
tabcontrolname |
The name of the Tab control for which you want to post |
|
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
posts the event ue_display for each the tab pages in tab_address:
|
1 |
tab_address.TabPostEvent("ue_display") |
See also