Sets the event handler for a tab controller that is specified by
Event handlers are simply scripts to be called when certain events happen. User controls get notified about changes in state when users interact with them. Each event handler flag takes as an argument a script (which must reside in your script directories).
To clear an event handler, pass the empty string, "", to the flag. If no options are specified, all handlers are reset, and the user control will not respond to any events.
|int||yes||ID of the control to be queried.|
|Name||Flag arguments||Argument type||Exclusive to||Comments|
|1||string||—||The script that the command will be referencing.|
// Set the event handler for the User Num Box.
// Create a Tab controller and forms to associate with the tabs.
// First create a User Window to place the Control on
$windowId = `createWindow "MyWindow"`;
//create a main tab controller with a second and third tab
$mainTab = `createTab $windowId "Main" "Second" "Third" -sel 2`;
// Set the -selChange event handler for the setTabHandler. When
// the user switches tabs, this script will be
// executed. setTabHandler must reside in one of
// the scripts directories.
setTabHandler $mainTab -selChange " SetTabHandler";