...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Return value
integer
Examples
Code Block | ||
---|---|---|
| ||
// 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 | ||
---|---|---|
| ||
// 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
...