Navigation:  thinBasic Modules > UIAdv (Advanced User Interface module) > XPBUTTON Control >

XPButton_SetToggle

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets button to toggle state (%TRUE) or to pushbutton state (%FALSE).

 

Syntax

 

lretCode = XPButton_SetToggle(hwnd, ctrlID, lToggle [, Redraw])

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

lToggle

Number

No

Toggle state (%TRUE or %FALSE)

Redraw

Number

Yes

%TRUE or %FALSE to force a redraw of the control

 

Remarks

 

Restrictions

 

See also

 

Examples