Solved

How to disable the borders of buttons in visual foxpro

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

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.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …

685 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