Page 55 - Open Soource Technologies 304.indd
P. 55
Unit 3: Understanding Controls and Control Events
displayed on the Command Button. The color that is set in the MaskColor property will become
the transparent color in the picture. E.g. if white is used in the picture, setting the MaskColor
to white will mean that white changes the background color of the Command Button (i.e., changes
to being transparent).
Figure 3.13: The MaskColor has been set to white, which means that the white
areas in the picture have become transparent.
You should not use a system color for the MaskColor property because system colors are
changeable by the user. This means that the Command Button would end up with no color being
made transparent, which would not be the desired effect.
Mouse Icon
When the user hover’s the mouse pointer over the Command Button, the image set for this
property will become the mouse icon. This property will only work if the Mouse Pointer
property is set to 99 - Custom.
Mouse Pointer
Sets the type of mouse pointer to be used when the user hovers the mouse over the Command
Button. The possible choices are:
Table 3.1: Mouse Pointer Choices
Value Name Constant
0 Default vbDefault
1 Arrow vbArrow
2 Cross vbCrosshair
LOVELY PROFESSIONAL UNIVERSITY 49