|

Properties and Methods
BackColor
ButtonMode
Caption
Enabled
Font
ForeColor
mbooButtonLighted
mfonFont
mmodButtonMode
molcBackColor
molcSelColor
mpicPicture
mpicSelPicture
mpoiCursorPos
Picture
SelColor
SelPicture
Events
Click
DblClick
Enabled
KeyDown
KeyPress
KeyUp
MouseDown
MouseMove
MouseUp
StatusChanged
Methods
AsyncRead
CancelAsyncRead
CanPropertyChange
Cls
DataMemberChanged
DisplayAboutBox
Flash
Line
OLEDrag
PaintPicture
Point
PopupMenu
PropertyChanged
PSet
Refresh
Scale
ScaleX
ScaleY
SetFocus
Size
TextHeight
TextWidth
tmChkStatus_Timer
UserControl_Click
UserControl_DblClick
UserControl_Initialize
UserControl_InitProperties
UserControl_KeyDown
UserControl_KeyPress
UserControl_KeyUp
UserControl_MouseDown
UserControl_MouseUp
UserControl_ReadProperties
UserControl_Resize
UserControl_WriteProperties
Details - Properties
BackColor
BackColor is used just like any other control's BackColor property: it
specifies the control's background color.
BorderStyle
The BorderStyle property is another example of passing values directly to
other objects. Changing UserControl.BorderStyle also modifies the appearance
of the control.
ButtonMode
The ButtonMode property cannot be directly passed to another object's
property because no other object has a ButtonMode property. ButtonMode
specifies how the control will work. If it's set to Text Only Mode (0), the
control uses a "text only" display and changes its background
color to indicate a selected or unselected state. If it's set to Image Mode
(1), images (specified by the Picture and SelPicture properties) will be
used instead.
Font
This property is used to change the font of the text to be displayed on the
control.
ForeColor
ForeColor property works similarly to the BackColor property. This property
can be used to change the forecolor of the control.
Picture
The Picture property is used to specify the image that should be displayed
if the control is in a nonselected state. This image is also used as the
default image; that is, the image that will be showing when the control is
initially displayed.
SelColor
The SelColor property is used to specify which color the control's
background will be changed to in order to indicate a selected state for the
control. This property is really meaningless unless the control is in Text
Only Mode (ButtonMode = 0).
SelPicture
The SelPicture property specifies the image that will be used to indicate a
selected state for the control when it is in image mode (ButtonMode = 1).
Details - Methods
Refresh
The Refresh method redraws the control whenever requested.
Flash
This method lets the developer "flash" the control a specified
number of times. Flash method could be used to draw attention to the
control.
|