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

ViewPort_SetChildAutoSize

Previous pageReturn to chapter overviewNext page

 

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