CONTROL SHOW STATE

<< Click to Display Table of Contents >>

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

CONTROL SHOW STATE

 

Description

 

Change the visible state of a control.

 

Syntax

 

CONTROL SHOW STATE hwnd, ctrlID, State [TO PrevState]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

State

Number

No

Can be one of the following:

 

%SW_HIDEHide the control.
%SW_MAXIMIZEMaximize the specified control.
%SW_MINIMIZEMinimize the specified control.
%SW_RESTOREActivate and display the control.  If the control is minimized or maximized, Windows restores it to its original size and position.  An application should specify this flag when restoring a minimized control.
%SW_SHOWActivate the control and display it in its current size and position.
%SW_SHOWMAXIMIZEDSynonym of %SW_MAXIMIZE.

 

%SW_SHOWMINIMIZEDActivate the control and minimize it.
%SW_SHOWNADisplay the control in its current state without activating it.  The currently active window/control remains active.
%SW_SHOWNOACTIVATEDisplay the control in its most recent size and position without activating it.  The currently active window/control remains active.
%SW_SHOWNORMALActivate and display the control.  If the control is minimized or maximized, it is restored it to its original size and position.

PrevState

Variable

Yes

If the optional TO clause is included, the PrevState variable is assigned the value zero if the control was previously not visible, or non-zero if it was previously visible.

 

Remarks

 

Restrictions

 

See also

 

Examples