<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > ViewPort Control > Viewport Control Commands > ViewPort_SetChild |
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