button

button

Postby Natter » Fri Feb 12, 2021 8:22 am

Hi,

How can I make a button with rounded corners ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: button

Postby nageswaragunupudi » Fri Feb 12, 2021 9:37 am

Code: Select all  Expand view
  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
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: button

Postby Natter » Fri Feb 12, 2021 5:25 pm

Thanks.
However, the rounded corners do not look very good. Pixel steps are visible to the naked eye
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: button

Postby D.Fernandez » Sat Feb 13, 2021 11:25 pm

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

Regards.
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 464
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: button

Postby Natter » Sun Feb 14, 2021 8:32 am

Hi, D.Fernandez

Can I go into more detail ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: button

Postby D.Fernandez » Mon Feb 15, 2021 11:54 pm

Hola,

Puedes verlo en testrbtn en fwh\samples

saludos
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 464
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 38 guests