Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scroll pagebreak

Return value

void

Examples

Code Block
languagetext
// Set the event handler for the User Time Box.

...


int $windowId;

...


int $controlId;

...


 

...

// First create a User Window to place the Control on 

...

$windowId = `createWindow "MyWindow"`;

...


 

...

// Create the User Control on the Window.

...


$controlId = `createTimeBox $windowId`;

...


 

...

// Save the control ID to our profile, so we can retrieve it

...


// from the event handler

...


writeProfileInt "MyWindowSection" "TimeBoxId" $controlId;
  

...

// Set the -loseFocus event handler for the Time Box. When

...


// the user clicks (or Tabs) out of Time Box item, this script will be

...


// executed. TimeBoxLoseFocusHandler must reside in one of

...


// the scripts directories.

...


setTimeBoxHandler $controlId -loseFocus "TimeBoxLoseFocusHandler";

Additional information

Related commands

...