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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

color change cmd button with focus 1

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
US
Is there a way to change the color of a command button on a form if I move the pointer over it? highlighting the option?
 
Hi Dan,

In the FoxPro Foundation Classes (FFC), there is a class to do this very thing. Check it out.

Class: _mouseoverfx
Class Library: _ui.vcx
Example of use: mousefx.scx Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Dan

Jon's suggestion is the best way way of implementing the colour change you want.

If you prefer not to use such a class, in the .MouseMove event of Command1 put :-

THIS.ForeColor = RGB(255,255,255)

In the .MouseMove event of the form put :-

THISFORM.Command1.ForeColor = RGB(0,0,0)

Chris

 
not really sure how to use classes yet? will try both though
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top