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!

border on buttons

Status
Not open for further replies.
Oct 21, 2006
20
US
Hello,

I have tried to figure out the border on command buttons so they are not so ordinary.

What is the property to put the border on a command button>?

Charles Mac

wnscc@wnscc.org
 
There is No property in VFP that will put a border around a command button, Themes will put a golden border inside... But you can create your own.

Put a shape around the button, send to back, set its Visible property to .f.

Command Button:
MouseEnter()
thisform.shape1.visible = .t.
MouseLeave
thisform.shape1.visible = .f.
 

In addition to adding a shape around the button, you could put a picture on it, change its color, etc., to make a button less ordinary.

Also, check out these FAQs:
faq184-3837
faq184-3534

Or you can create a class of your own using graphics and make the button look any way you want.

 
If you use a Command Group, you get a border. Doesn't make much sense to do it but, if you use a command group with one button, you have a border property.

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top