Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to disable the borders of buttons in visual foxpro

Posted on 2009-05-20
2
Medium Priority
?
440 Views
Last Modified: 2012-05-07
Hi,

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

Any HInt?
0
Comment
Question by:zrod
  • 2
2 Comments
 
LVL 2

Expert Comment

by:cthulthu
ID: 24441826
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.
0
 
LVL 2

Accepted Solution

by:
cthulthu earned 1500 total points
ID: 24441877
I forgot to mention that each image should be slightly different.  The picture in the "down" image should be slightly offset and have shading.  The "enter" image should be highlighted somewhat to provide feedback that the mouse has moved onto it.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question