Versions Compared

Key

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

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths11%, 15%, 14%, 13%, 47%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

Return value

integer

Examples

Code Block
languagetext
// Create a Color Picker User Control.

...


int $windowId;

...


int $controlId;

...


int $color[3];

...


 

...

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

...


$windowId = `createWindow "MyWindow"`;

...


// Specify the initial color of the control, Red

...


$color [0] = 255; // Red

...


$color [1] = 0;   // Green

...


$color [2] = 0;   // Blue
  

...

// Create the Control on the Window, passing

...


// in the Window Id of the User Window we 

...

// just created. Make the Control tri-state and set

...


// its text

...


$controlId = `createColorPicker $windowId -color $color`;

Additional information

Related commands

...