button
Posted: Fri Feb 12, 2021 8:22 am
Hi,
How can I make a button with rounded corners ?
How can I make a button with rounded corners ?
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