Versions Compared

Key

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

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths12%, 15%, 14%, 13%, 46%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

integer

Scroll pagebreak

Examples

Code Block
languagetext
// Create a Radio Button User Control.

...


int $windowId;

...


int $radioId1; 

...

int $radioId2;

...


int $radioId3;

...


int $rect[4];

...


 

...

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

...


$windowId = `createWindow "MyWindow"`;

...


 

...

// Specify the size and position of the first Radio Button

...


$rect[0]   = 0; // Left

...


$rect[1] = 0;   // Top

...


$rect[2] = 100; // Right

...


$rect[3] = 20;  // Bottom

...


 

...

// Create the first Control on the Window. Make sure to

...


// set the -first flag so that all three can work together

...


$radioId1 = `createRadioButton $windowId -text "Option 1" -pos $rect -check -first`;

...


 

...

// Now position the second Radio Button

...


$rect[0] = 0;   // Left

...


$rect[1] = 25;  // Top

...


$rect[2] = 100; // Right

...


$rect[3] = 45;  // Bottom

...


 

...

// ... and create it

...


$radioId2 = `createRadioButton $windowId -text "Option 2" -pos $rect`;

...


 

...

// And finally the third Radio Button

...


$rect[0] = 0;   // Left

...


$rect[1] = 50;  // Top

...


$rect[2] = 100; // Right

...


$rect[3] = 70;  // Bottom

...


$radioId3 = `createRadioButton $windowId -text "Option 3" -pos $rect`;

Additional information

Related commands

...