Skip to content

LoadBitmap Method

Description

Used to add an icon to the collection of icons from a BitMap file (.BMP).

Syntax

Public Sub LoadBitmap( _
    ByVal [Path](#) As String, _
    ByVal [Commands](#) As Variant, _
    ByVal [imageState](#) As [XTPImageState](XtremeCalendarControl~Enumerations~XTPImageState_EN.md) _
)

Parameters

  • Path: The path of the BitMap to load.
  • Commands: The id that will be used to identify the icon in the collection of icons. This can be any positive (non-zero) number.
  • imageState: Specifies the state of the icon.

Image State Values

Value Description
xtpImageNormal Specifies a normal icon. This is the image displayed when the item is displayed normally.
xtpImageDisabled Specifies a disabled icon. This is the image displayed when the item is disabled.
xtpImageHot Specifies a hot icon. This is the image displayed when the mouse pointer is positioned over the item.
xtpImageChecked Specifies a "checked" or selected icon. This is the image displayed when the item is in a selected state.
xtpImagePressed Specifies a "pressed" or pushed icon. This is the image displayed when the item is currently pressed by the mouse cursor.

Remarks

The "Commands" parameter can be any positive integer and is used to identify the icon in the collection of icons. When you want to use an icon, you need to specify this value.

Note: You will need to include the bitmap file with your application (exe) if this method is used.

See Also

ImageManagerIcons Collection


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.