Versions Compared

Key

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

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths18%, 10%, 13%, 59%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

integer array

Scroll pagebreak

Examples

Code Block
languagetext
// Get the bounding rect of a User Window, and place

...


// a control within it.

...


int $windowId;

...


int $controlId;

...


int $rect[4], $controlRect[4];

...


 

...

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

...


$windowId = `createWindow "MyWindow"`;

...


 

...

// Create a Text Box Control in the window.

...


$controlId = `createTextBox $windowId -text "Get Window Rect Sample"`;

...


 

...

// Get the rect of the User Window.

...


$rect = `getWindowRect $windowId`;

...


 

...

// Position the control in the middle of the User Window

...


$controlRect[0] = $rect[0];

...


$controlRect[1] = ($rect[1] + $rect[3]) / 2;

...


$controlRect[2] = $rect[2];

...


$controlRect[3] = $controlRect[1] + 24;

...


setControlPos $controlId $controlRect;

Additional information

Related commands

...