BITMAP dialog element |
|
| Top Previous Next | |
Syntax:
DIALOG ADD, BITMAP,<name>,<top>,<left>,<width>,<height>,<filename>,<tooltip>,<styles>
Description:
The BITMAP dialog element is VDS' native image display element. It supports only Windows bitmap (BMP) and icon (ICO) format files. The bitmap image can be loaded directly from a file, a URL [VDS6] or from a resource compiled in to the executable file. In this case, the file should be located in the project folder or the resource folder specified in the project options, and the filename should be prefixed by a hash '#' character.
If the width or height are omitted then the dialog element automatically resizes itself to fit the image.
Styles:
CLICK |
The element will generate a <name>CLICK event when the image is clicked with the mouse. You can test whereabouts on the bitmap the mouse was clicked and which button was used with the @CLICK function. |
INVISIBLE |
This style allows a bitmap to be used to create a skin for a dialog. The BITMAP element must be the first to be created, and its size must match that of the dialog. The style may optionally be followed by a space and a color, which is used to mark the parts of the image that are to be invisible. If no color is specified, the color of the bottom leftmost pixel is used. When the dialog is displayed, you can see desktop items under the invisible parts of the bitmap. |
MOUSEOVER |
The element will generate a <name>ENTER event when the mouse enters the boundary of the dialog element, and a <name>LEAVE event when the mouse leaves the boundary. |
TRANSPARENT [VDS6] |
This style creates a bitmap in which the background will show through the parts of the image painted in a certain color. The style may optionally be followed by a space and a color, which is used to indicate the transparency color instead. The color can be a string such as: BLACK, WHITE, BLUE etc., or a hexadecimal RGB value. If no color is specified, the color of the bottom leftmost pixel is used. Note: This style is ignored when an icon is displayed. |
STRETCH |
The image will be sized to fit the dialog element (bitmap images only.) |
<cursor style> |
The cursor will change to the named style when the pointer is over the dialog element. Valid styles are: NONE, ARROW, CROSS, IBEAM, SIZE, NESW, NS, NWSE, WE, UP, WAIT, DRAG, NODROP, HSPLIT, VSPLIT, MULTI, SQL, NO, HELP, HAND. |
See also: