XPButton_SetIcon

<< Click to Display Table of Contents >>

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

XPButton_SetIcon

 

Description

 

Loads an icon from file and sets it as the image of the button

 

Syntax

 

lretCode = XPButton_SetIcon(hwnd, ctrlID, sPath, ImageState [, Redraw])

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

sPath

String

No

Full path of the icon's file.

ImageState

Number

No

One of the following equates:

%XPBUTTON_NORMAL

%XPBUTTON_HOT

%XPBUTTON_DISABLED

Redraw

Number

Yes

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

 

Remarks

 

Restrictions

 

See also

 

Examples