Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons

Status
Not open for further replies.

ferryjenny

Technical User
Nov 22, 2000
24
GB
I have some buttons on my dialog and I would very much like it if when the user moved the cursor over the button it would do something like change colour or become bold. Is this possible and if it is does anybody know how it is done.

Thanks

Jenny.
 
Yeah, it possible.

Make ur button ownerdrawn;
Override OnMouseMove, OnMouseLeave,OnMouseHover.
Set a boolean variable which is true on hover and false when mouse leaves.

In ur DrawItem, depending on the bool, draw the color u want

HTH
bharathidasan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top