Subject |
Re: Borderless Buttons with Rounded Corners - Thanks twice |
From |
Mervyn Bick <invalid@invalid.invalid> |
Date |
Wed, 29 Mar 2023 17:44:13 +0200 |
Newsgroups |
dbase.getting-started |
On 2023/03/29 11:57, Carlos Pereira [APKomp] wrote:
>
>> Sorry to abuse but I was going to ask you:
>> How to make buttons (or another object that has an onclick event)
>> with the following format shown in attachment and used in many side?
>>
>>
>
>
> Small change:
>
> ...
> if this.width <> this.height
> this.width = this.height
> endif
> ...
> hrgn1=CreateRoundRectRgn(x1+nFudge,y1+nFudge,y2-nFudge,y2-nFudge,z,z)
>
> - >
>
> //if this.width <> this.height
> // this.width = this.height
> //endif
> ...
> hrgn1=CreateRoundRectRgn(x1+nFudge,y1+nFudge,x2-nFudge,y2-nFudge,z,z)
> ...
Micheal had a specific application in mind where he wanted to use a
pushbutton with rounded corners so when I started playing with this I
added the code to force a square shape with rounded corners. The two z
values are for the width and height of the eclipse used for rounding.
With a square I used the same value for both parameters. If you want an
oblong pushbutton you will probably need to experiment with different
values.
Mervyn.
|
|