LoadVectorIcon Method
Syntax
Public Function LoadVectorIcon( _
ByVal Path As String, _
ByVal nIDCommand As Long, _
ByVal nWidth As Long, _
ByVal imageState As XTPImageState _
) As Boolean
Parameters
-
Path (String)
The file path to the vector icon resource. -
nIDCommand (Long)
The command identifier associated with the icon. -
nWidth (Long)
The desired width (in pixels) for the loaded icon. -
imageState (XTPImageState)
The image state specifying which icon to load. Possible values: - xtpImageNormal — Specifies a normal icon. This is displayed when the item appears normally.
- xtpImageDisabled — Specifies a disabled icon. This is displayed when the item is disabled.
- xtpImageHot — Specifies a hot icon. This is displayed when the mouse pointer is over the item.
- xtpImageChecked — Specifies a "checked" (selected) icon. This is displayed when the item is in a selected state.
- xtpImagePressed — Specifies a "pressed" (pushed) icon. This is displayed while the item is being pressed by the mouse.
Return Value
Boolean — Returns True if the vector icon was loaded successfully; otherwise, returns False.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.