FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour button
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

button

Posted: Fri Feb 12, 2021 08:22 AM

Hi,

How can I make a button with rounded corners ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: button

Posted: Fri Feb 12, 2021 09:37 AM
Code (fw): Select all Collapse
   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


Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: button

Posted: Fri Feb 12, 2021 05:25 PM

Thanks.
However, the rounded corners do not look very good. Pixel steps are visible to the naked eye

Posts: 555
Joined: Wed Jul 31, 2013 01:14 PM

Re: button

Posted: Sat Feb 13, 2021 11:25 PM

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

Regards.

Dario Fernandez

FWH 2501, Harbour, MVS2022 Community, MySql & MariaDB, Dbf/Cdx VSCode.

Maldonado - Uruguay
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: button

Posted: Sun Feb 14, 2021 08:32 AM

Hi, D.Fernandez

Can I go into more detail ?

Posts: 555
Joined: Wed Jul 31, 2013 01:14 PM

Re: button

Posted: Mon Feb 15, 2021 11:54 PM

Hola,

Puedes verlo en testrbtn en fwh\samples

saludos

Dario Fernandez

FWH 2501, Harbour, MVS2022 Community, MySql & MariaDB, Dbf/Cdx VSCode.

Maldonado - Uruguay

Continue the discussion