Page 1 of 1

button

Posted: Fri Feb 12, 2021 8:22 am
by Natter
Hi,

How can I make a button with rounded corners ?

Re: button

Posted: Fri Feb 12, 2021 9:37 am
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

Re: button

Posted: Fri Feb 12, 2021 5:25 pm
by Natter
Thanks.
However, the rounded corners do not look very good. Pixel steps are visible to the naked eye

Re: button

Posted: Sat Feb 13, 2021 11:25 pm
by D.Fernandez
Hi, My be Rbtn is that you're looking for.

Regards.

Re: button

Posted: Sun Feb 14, 2021 8:32 am
by Natter
Hi, D.Fernandez

Can I go into more detail ?

Re: button

Posted: Mon Feb 15, 2021 11:54 pm
by D.Fernandez
Hola,

Puedes verlo en testrbtn en fwh\samples

saludos