Versions Compared

Key

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

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths15%, 15%, 14%, 13%, 43%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

Return value

integer

Examples

Code Block
languagetext
// Create a group box user control.

...


int $windowId;

...


int $groupId; 

...

int $topForm;

...


int $controlId;

...


 

...

// First create a user window to place the Control on

...


$windowId = `createWindow "MyWindow"`;

...


 

...

// Get the top level form

...


$topForm = `getTopLevelForm $windowId`;

...


 

...

// Create the group box, adding it as a child of the

...


// top level form.

...


$groupId = `createGroupBox $windowId -form $topForm-text "Group Box"`;

...


setControlAnchor $groupId "top" "top" 0;

...


setControlAnchor $groupId "left" "left" 0;

...


setControlAnchor $groupId "right" "right" 0;  

Scroll pagebreak

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

...


// the length of the group box

...


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

...


// 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

...