button

Post Reply
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

button

Post by Natter »

Hi,

How can I make a button with rounded corners ?
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: button

Post by nageswaragunupudi »

Code: Select all

   local oDlg, oBtn

   DEFINE DIALOG oDlg SIZE 250,250 PIXEL TRUEPIXEL

   @  20,20 BTNBMP oBtn PROMPT "ROUND1" SIZE 200,100 PIXEL OF oDlg FLAT COLOR CLR_WHITE,CLR_GREEN NOBORDER
   oBtn:nRound := 60

   @ 160,20 BTNBMP oBtn PROMPT "ROUND2" SIZE 200,60 PIXEL OF oDlg FLAT COLOR CLR_WHITE,CLR_HRED NOBORDER
   oBtn:nRound := 30

   ACTIVATE DIALOG oDlg CENTERED
 
Image
Regards

G. N. Rao.
Hyderabad, India
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: button

Post by Natter »

Thanks.
However, the rounded corners do not look very good. Pixel steps are visible to the naked eye
D.Fernandez
Posts: 392
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay
Contact:

Re: button

Post by D.Fernandez »

Hi, My be Rbtn is that you're looking for.

Regards.
Dario Fernandez
FWH, Harbour, BCC, MySql & MariaDB, tData, Dbf/Cdx
VSCode.
Maldonado - Uruguay
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: button

Post by Natter »

Hi, D.Fernandez

Can I go into more detail ?
D.Fernandez
Posts: 392
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay
Contact:

Re: button

Post by D.Fernandez »

Hola,

Puedes verlo en testrbtn en fwh\samples

saludos
Dario Fernandez
FWH, Harbour, BCC, MySql & MariaDB, tData, Dbf/Cdx
VSCode.
Maldonado - Uruguay
Post Reply