ViewPort_SetChildAutoSize

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > ViewPort Control > Viewport Control Commands >

ViewPort_SetChildAutoSize

 

Description

 

Set the autosize flag of a ViewPort child window.

If %TRUE, the child window size will be automatically adjusted to reflect parent ViewPort size.

If %FALSE, the ViewPort will automatically show/hide horizontal/vertical scrollbars when necessary in order to be able to scroll ViewPort and see child window

 

Syntax

 

n = ViewPort_SetChildAutoSize(ViewPortHandler, AutoSize)

 

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

AutoSize

Number

No

Set to %TRUE or %FALSE

 

Remarks

 

Restrictions

 

See also

 

Examples