Link to home
Start Free TrialLog in
Avatar of zrod
zrod

asked on

How to disable the borders of buttons in visual foxpro

Hi,

I need to create buttons in visual foxpro that look flat and without borders.

Any HInt?
Avatar of cthulthu
cthulthu

I don't think you can flatten a button, but you can use a set of images to simulate buttons on your forms.

Image1:  Set its Picture property as your standard control visible on the form
this.image1.picture = d:\pics\button_normal.bmp
this.image1.stretch = 1
size it appropriately

Then you can create methods for various "button-like" actions for it:

this.mouseenter:
this.Picture = 'd:\pics\button_over.bmp'

this.mousedown
this.Picture = 'd:\pics\button_down.bmp'

this.mouseup
this.Picture = 'd:\pics\button_normal.bmp'

Finally, put your button action code in the click event just like any other button.
ASKER CERTIFIED SOLUTION
Avatar of cthulthu
cthulthu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial