SETPARENT                                                        Statement

SETPARENT child, parent

Description

SETPARENT is used to move one control inside a container control.  The required component, child, is the control to be moved into the container.  The required component, parent, is the control that will hold the child, it must be a control with the container property (ie. Frame). Both controls must be created before the call to SETPARENT is made. This will work properly when the controls are intrinsic controls built into NS Basic. Third party controls do not all implement the needed interfaces to do this properly.

Example

REM SETPARENT Example

'SETPARENT moves one control inside another

ADDOBJECT "TextBox", "input", 5, 5, 140, 18

ADDOBJECT "Frame", "box", 0, 0, 200, 40

SETPARENT input, box