Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Sets the icon for a part in a status bar.

 

Syntax

 

n = StatusBar_SetIcon(hWnd, ctrlID, lPart, FileName, IconNumber)

 

Returns

 

Number

 

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 ...

lPart

Number

No

Left position in pixel of part 1

FileName

Number

No

File name to extract icon from

IconNumber

Number

No

Icon number inside FileName. Starts from 0

 

Remarks

 

If FileName is empty, current icon (if any) in lPart will be deleted.

If FileName is an icon file (with .ico extension), set IconNumber to 0.

 

 

Restrictions

 

See also

 

Examples

 

STATUSBAR_SetIcon  hDlg, %ID_SBar, 1, "C:\WINDOWS\system32\shell32.dll", 1

STATUSBAR_SetIcon  hDlg, %ID_SBar, 2, "C:\WINDOWS\system32\shell32.dll", 54

STATUSBAR_SetIcon  hDlg, %ID_SBar, 3, APP_SOURCEPATH & "MyIcon.ico", 0

 

'---Icon is deleted

STATUSBAR_SetIcon  hDlg, %ID_SBar, 1, "", 0

STATUSBAR_SetIcon  hDlg, %ID_SBar, 2, "", 0

STATUSBAR_SetIcon  hDlg, %ID_SBar, 3, "", 0

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software