Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to disable the borders of buttons in visual foxpro

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This is an explanation of a simple data model to help parse a JSON feed
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…

838 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