Solved

How to disable the borders of buttons in visual foxpro

Posted on 2009-05-20
2
415 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
[X]
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
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Six Sigma Control Plans

623 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