AddBitmap Method
Description
Used to add an icon(s) to the ImageManagerIcons collection of icons from a Bitmap resource.
Syntax
Public Sub AddBitmap( _
ByVal [Handle](#) As Long, _
ByVal [Commands](#) As Variant, _
ByVal [imageState](#) As [XTPImageState](XtremeCalendarControl~Enumerations~XTPImageState_EN.md), _
ByVal [Alpha](#) As Boolean _
)
Parameters
- Handle: The handle to the Bitmap Resource to be added. The Handle must be to a GDI BITMAP.
- Commands: The id(s) that will be used to identify the icon(s) in the collection of icons. This can be any positive (non-zero) number.
- imageState: The state of the image.
| 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. |
- Alpha: Specifies whether the image is a 32-Bit Alpha image.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.