Solved

How to disable the borders of buttons in visual foxpro

Posted on 2009-05-20
2
399 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now