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?
I need to create buttons in visual foxpro that look flat and without borders.
Any HInt?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.