Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > ViewPort control >

ViewPort_SetChild

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets the child window of a ViewPort control

 

Syntax

 

n = ViewPort_SetChild(ViewPortHandler, ChildWindowHandler, AutoSizeChild)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

ViewPortHandler

Number

No

Control handler of the ViewPort. Control handler is the handler returned by

CONTROL ADD VIEWPORT ... statement

ChildWindowHandler

Number

No

Window handler of the window to be assigned to the ViewPort and shown as child window.

Use zero to remove child window and leave ViewPort empty for subsequent assignment of child windows.

Use -1 to leave current child window

AutoSizeChild

Number

No

%TRUE means not to show viewport scrollbars but automatically resize child window when viewport is resized

%FALSE means not to manage child window size but manage scrollbars positioning

 

Remarks

 

Restrictions

 

See also

 

Examples