Versions Compared

Key

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

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths20%, 10%, 13%, 57%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

None

Return value

void

Examples

Code Block
languagetext
// Set the checked value of a Check Box User Control

...


int $windowId;

...


int $controlId;

...


int $checked;

...


 

...

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

...


$windowId = `createWindow "MyWindow"`;

...


 

...

// Create the User Control on the Window. 

...

$controlId = `createCheckBox $windowId -triState`;

...


 

...

// Set the value to "indeterminate"

...


setCheckBoxCheck $controlId 2;

...


 

...

// Get the value on the Check Box. 

...

$checked = `getCheckBoxCheck $controlId`;

...


if( $checked == 1 )

...


{ 

...

    print "Checked";

...


}

...


else if( $checked == 0 )

...


{

...


    print "Unchecked";

...


}

...


else

...


{

...


    print "Indeterminate";

...


}

Additional information

Related commands

...