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 Form User Control.

...


int $windowId;

...


int $ formId;

...


int$topForm;

...


int$controlId;

...


int$rect[4];

...


 

...

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

...


$windowId = `createWindow "MyWindow"`;
  

...

// Get the top level form

...


$topForm = `getTopLevelForm $windowId`; 
  

...


// Specify the size of the Form - 300x300 

...


$rect[0] = 20;  // Left 

...

$rect[1] = 20;  // Top 

...

$rect[2] = 320; // Right 

...


$rect[3] = 320; // Bottom 
  

...


// Create the Form, adding it as a child of the

...


// top level form.

...


$formId = `createForm $windowId -form $topForm -pos $rect`; 
  

...


// Now create a Text Box, and anchor it so that the text box spans

...


// the length of the Form

...


$controlId = `createTextBox $windowId -text "Text Box" -form $formId`; 
  

...

// Anchor it

...


setControlAnchor;

...


$controlId "top" "top" 20;

...


setControlAnchor; 

...

$controlId "left" "left" 20;

...


setControlAnchor; 

...


$controlId "right" "right" 20; 
  

...


// Now, call layoutForm, which will do the managing of the controls

...


// under the form

...


layoutForm $topForm;

Additional information

Related commands

...