SETHTCOLOR

Top  Previous  Next

Syntax

SETHTCOLOR(win as WINDOW,id as INT,hc as UINT)

Description

.Sets the hot tracking color used by a button of type @RGNBUTTON

Parameters

win - Parent window or dialog of the control.

id - Controls identifier.

hc - The hot tracking color.

Return value

NONE

Remarks

A region button supports automatic an automatic hot tracking color.  The hot tracking color is displayed whenever the mouse is over the buttons client area.  If the region button has a normal bitmap, but no hot tracking bitmap, then this color is used the tint the normal bitmap to provide the hot tracking effect.  If the region button has both a normal and hot tracking bitmap then this color is ignored.  Under all other circumstances the color is displayed as a solid color.

Example usage

button 3 is a regioned button with automatic hot tracking color
SETCONTROLCOLOR d1,BUTTON_3,RGB(255,255,255),RGB(10,100,128)
SETBUTTONRGN d1,BUTTON_3,RGNFROMBITMAP(GETSTARTPATH+"rgn_bmp2.bmp")
SETHTCOLOR d1,BUTTON_3,RGB(20,138,138)
SETBUTTONBORDER d1,BUTTON_3,2