int aw_toolbar_click () |
|
aw_toolbar_click triggers a toolbar-click event. Callback None (returns immediately) Notes This method requires at least SDK build 37 and world server build 63. aw_toolbar_click triggers the event AW_EVENT_TOOLBAR_CLICK in all nearby SDK applications that have subscribed to the event. It is intended for use by the Active Worlds Browser to indicate when a user clicks on an sdk event toolbar button, however it is also available for use by SDK applications which may wish to simulate toolbar button actions for the purposes of testing, etc. Example /* Simulate toolbar #10 click */
void handle_toolbar_click (void)
{
printf ("Session #%d clicked toolbar #%d\n",
aw_int (AW_TOOLBAR_SESSION),
aw_int (AW_TOOLBAR_ID));
}
aw_event_set (AW_EVENT_TOOLBAR_CLICK, handle_toolbar_click);
aw_int_set (AW_TOOLBAR_ID, 10);
aw_toolbar_click ();
SEE ALSO |