Skip to content

LoadIcon - cToolTipController

Loads an icon from disk, or resource to be displayed in the ToolTip window

Type: Procedure

Parameters

Parameter Type Description
sIcon String The filename of the icon to be loaded

Syntax

Procedure LoadIcon String sIcon

Call Example

Send LoadIcon sIcon

Description

When the program is run it will first check to see if the icon is added to the program's resources and, if found, use it. If not, it will search for the icon using the program's DFPath paths.

When you send this message the cToolTipController's piIcon property stores the icon handle of the icon that is created by the ToolTip window.

Send this message when you wish to display an icon that is not one of the system icons. To use one of the system icons, set the piIcon property.

Icons cannot be displayed in a ToolTip unless the psTitle property is non-blank. If you send the LoadIcon message when psTitle is blank, the cToolTipController will automatically assign the psTitle property to "Title".

Sample

Object oToolTip is a cToolTipController
    Set psTitle to "Tip"
    Send LoadIcon "CompanyLogo.ico"
    Move Self to ghoToolTipController
End_Object

See Also

piIcon | psTitle