Subject Re: WIN 11 Borderless Buttons with Rounded Corners
From Tom <IHaveNoEmail@ddress>
Date Tue, 21 Mar 2023 12:32:53 -0400
Newsgroups dbase.getting-started

On 3/21/23 11:51 AM, Mervyn Bick wrote:
> On 2023/03/21 10:15, michael wrote:
>> Hi Guys,
>> Ok, I will give you greater detail in what I am trying to do. Here is
>> a history and request in point form,
> .....
>> 3. I need to take it up a notch, so launching a new brand, website,
>> social media campaign to mirrow the new demographics and current
>> rounded windows style. See pic 2. this is where I am trying to get to
>> and its a design of where we need to be in the current market.
> In the past I have "borrowed" code from Marc van den Berghen to create
> circular pushbuttons.  This used CreateEllipticRgn() from the Windows32
> API.  CreateRoundRectRgn() from the API creates a rectangular region
> with rounded corners, which can be altered to suit, but I haven't (yet
> :-) ) managed to get this to work properly.
> The attached custom pushbutton comes close but it uses
> CreateEllipticRgn() and relies on a dBASE shape object to provide the
> line round the pushbutton.  The rounding of the corners is unfortunately
> not adjustable.
> The custom control uses an onOpen event handler internally.  If your
> existing pushbuttons use an onOpen event handler it will be necessary to
> insert a call to the custom control's onOpen event handler before any
> other code.
> It is easy enough to write a little program that will add the set
> procedure line immediately after a form's class definition and then
> replace 'new PUSHBUTTON(this)' with 'new ROUND_CORNER_BUTTON(this)'.
> The custom control requires the form metric to be set to pixels.  The
> easiest way is to open each form in the IDE, change the metric and then
> save.  Acceptable for a few form but a PITA if there are many forms.
> Again, it's not a problem to change top, left, width and height values
> in a program but the factors to apply depend on the original metric.
> Mervyn.

Lots of stuff in Google but all way above my pay grade. Maybe Mervyn or
Mark can implement something ...


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0