Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Nandkishor Lande
  Where is Nandkishor Lande?
 Pune
 India
 Nandkishor Lande
 Tags
Subject: RE: No satisfied answer
Thread ID: 311192 Message ID: 311256 # Views: 77 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, June 30, 2011 12:35:03 AM         
   


> my question is how to use round command buttons with theme, any themed icons site to get themed icons.
> L. nandkishor

the vfp native buttons are rectangulaire (or at least square).there is non rounded commandbuttons.
But you can build rounded buttons with diffrent methods:

1.image (with any rounded picture ) and make backstyle=0 to make transprency of white color for ex.

2.circular shape (curvature=99,width=height) or elliptical (curvature=99 and width#height) or rounded
rectangle (curvature=20 for ex.)
you can add some code for event (mouseEnter,mouseleave,mousedown...)

3.the best way is using gdiplus to draw any kind of button with imgcanvas surface.
Bernard Bout (where is BB ?) have many works on this subject in its site for ex
http://weblogs.foxite.com/bernardbout/archive/2008/10/24/7163.aspx
or this
http://weblogs.foxite.com/bernardbout/archive/2008/09/29/6929.aspx

4-search on this forum there is many posts on gdiplusX relative to buttons.

Finally i give you a piece of code to draw more than 40 kinds of buttons with gdiplusX.its adapted from Bernard Bout Class of glowing buttons.
The code ask you to locate the gdiplusX.vcx
Rename this attached txt to prg and run.

https://www.foxite.com/uploads/5776f7c8-1b7d-4b2e-81f3-77129bc91dbf.txt

this is the result:

Regards
Yousfi Benameur

ENTIRE THREAD

No satisfied answer Posted by Nandkishor Lande @ 6/29/2011 3:31:00 PM
RE: No satisfied answer Posted by Terry Parkinson @ 6/29/2011 3:54:29 PM
RE: No satisfied answer Posted by Rahul Moudgill @ 6/29/2011 4:13:04 PM
RE: No satisfied answer Posted by Yousfi Benameur @ 6/30/2011 12:35:03 AM
RE: No satisfied answer Posted by prasanna kunder @ 6/30/2011 8:57:15 PM
RE: No satisfied answer Posted by Yousfi Benameur @ 6/30/2011 10:30:19 PM
RE: No satisfied answer Posted by Anil Sharma @ 7/1/2011 5:32:54 PM
RE: No satisfied answer Posted by prasanna kunder @ 7/2/2011 8:59:37 AM
RE: No satisfied answer Posted by Yousfi Benameur @ 7/1/2011 6:52:10 PM