Unicode Controls & Classes for VB6 - Version 4

ctlUniButtonImageXP Control

Unicode text button with optionally an image and rounded borders
Check common properties here

Enums
Name Description
eUniButtonImage_ImagePos Image position type
Properties
Name Type Description
BackColor (OLE_COLOR) Gets or sets the Background color of the control
BackColorOut (OLE_COLOR) Gets or sets the Color of the area out of the border (when using Rounded Borders in a non WindowLess control)
Leave -1& for automatic management
BorderColor (OLE_COLOR) Gets or sets the Border color
Caption (String) Gets or sets the Text of the control
DblClickEvent (Boolean) Gets or sets the ability to raise Double Click events
Enabled (Boolean) Enables or disables the control
Font (Font) Gets or sets the font used for text in the control, check the [ApplyFontChanges] for details
ForeColor (OLE_COLOR) Gets or sets the Foreground (Text) color for the control
ImagePos (eUniButtonImage_ImagePos) Gets or sets the image position
MouseIcon (Picture) Gets or sets the MouseIcon for the control
MousePointer (VBRUN.MousePointerConstants) Gets or sets the MousePointer for the control
OLEDropMode (eCtlOLEDropMode) Gets or sets the OleDropMode for the control
Picture (Picture) Gets or sets the control image
Pressed (Boolean) If in Tristate mode, permits you to set the press status of control
QualityStretch (Boolean) Turns on the quality stretch for the image in the control
RightToLeft (Boolean) Gets or sets the ability to show bidirectional text on the control
RoundedBorders (Boolean) Gets or sets Rounded borders
ShowFocus (Boolean) If True, draws the focus rectangle when the control gains the keyboard focus
Stretch (Boolean)
Style (eCtlButtonStyle) Gets or sets the control style
Tip (String) Gets or sets the Unicode Tooltip for the control
TransparencyType (eUniImage_TranspType) Gets or sets the Transparency Type for the image in the control
TransparentColor (OLE_COLOR) Gets or sets the Color to treat as a transparent color when rendering the image in the control
Tristate (Boolean) Gets or sets the ability for the control to be used in 3-state mode, like a checkbox
UseRoundRegions (Boolean) Gets or sets the ability to use Round Regions for round borders instead of using the [BackColorOut] property;
Value (Boolean) Added for compatibility for standard VB6 button; pass True for raise a Click
Returns the Pressed status
xTranspColor (Long) Gets or sets the Transparency X coordinate if you chose eUniImage_TranspType_ByCoords ([ctlUniImageWL.eUniImage_TranspType]) as transparency type
yTranspColor (Long) Gets or sets the Transparency Y coordinate if you chose eUniImage_TranspType_ByCoords ([ctlUniImageWL.eUniImage_TranspType]) as transparency type
Methods
Name Type Description
ApplyFontChanges When setting a new font on the control you need to call this function in order to refresh the interface
ForceLostFocus Forces the control to lose the keyboard focus
hWnd (Long) Returns the internal handle of the control
OLEDrag Starts an OLEDrag operation
Refresh
Remarks