NEW PLUGIN! Rounded Corners on objects... - Forum

Forum Navigation
You need to log in to create posts and topics.

NEW PLUGIN! Rounded Corners on objects...

Now you can apply rounded corners to your VisualNeo Win Buttons, Containers, Rectangles, and Simple Text Objects... You can also add colored rounded borders to objects in your apps too...

Command Examples:
GetObjectHandle "Container1" "[Con1Handle]" .first get the object handle into a variable...
uiRoundCornersSmooth "[Con1Handle]" "40" Sets the radius of Container1 to 40.

Add Borders:
uiRoundCornersWithBorder "[Con1Handle]" "20" "5" "0,0,0" .Parameters: "Object Handle" "Radius" "Border-Width" "RGB colors"

uiUndoRoundCorners "[Con1Handle]" will remove the rounded corner styles on an object.

The only limitation  is you can't put an object with rounded borders over another object... It won't render properly. But there is a workaround, and I have included images below...

1st Image is the standard VisualNeo Win look. (Included just for comparisons...)
2nd image is rounded corners on objects with no border.
3rd image is rounded corners with colored borders.
4th image is rounded corner objects (no borders) overlayed on top of each other to simulate a border. (Workaround)

*Note: I tried styling a Text Entry object but the scrollbars disappeared when Applying the rounded corner style.
*Try it on other objects that don't contain scrollbars.
*Windows will redraw your window when  navigating  to another page or resizing your app. So use the commands again afterwards.
*Don't use VisualNeo Win built in borders on the same objects your using the plugin on. They won't render properly...
* This plugin was developed on Win 11 but should work on Win 10 too.

Hope you find it useful,
Cheers

UPDATE! Fixed a couple of issues... See my reply below and download: Round Corners.V2.zip

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and 6 other users have reacted to this post.
luishpVadimdglojnarluizalangonzalez91CN_Icemanjoferar333iretz

Just a small fix for the plugin...

Fixed an issue with the Button Depress Effect wasn't working when borders were applied to the button...
Tweaked the rendering settings for a little better rendering of the comers and borders...

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and 5 other users have reacted to this post.
luishpVadimluizalangonzalez91CN_IcemanSinesi Giuseppeiretz

Excellent!!!

Uploaded files:
  • You need to login to have access to uploads.
luishp, luiz and Anthony LaTorre have reacted to this post.
luishpluizAnthony LaTorre

Thank you... Or I should say: Claude AI thanks you... ☺️ lol...

luishp, luiz and alangonzalez91 have reacted to this post.
luishpluizalangonzalez91

Hi Anthony, is it possible to add the shadow function in addition to rounded corners?

I tried before but failed... It adds another layer of complexity. Right now, I used up a lot of my Claude AI tokens creating the StyledText plugin...In the meantime,  you can put a light-gray rounded rectangle behind a button and simulate a faux shadow effect...

Of course if you're adventurous... You can buy PureBasic and get a Claude AI account or use my custom ChatGpt "Windows Plugin Helper" and give it a go yourself. You have the the source code...

I will see what I can do, this is a busy time of year..

alangonzalez91 has reacted to this post.
alangonzalez91

@anthony-latorre  Otro gran aporte!

Super facil y util!

Mil gracias

Saludos

Anthony LaTorre has reacted to this post.
Anthony LaTorre

Hi Anthony, I'm extremely grateful for your contribution. Do you have a PayPal account where I could donate to help cover expenses?

Roxie and Anthony LaTorre have reacted to this post.
RoxieAnthony LaTorre

Thank you @alangonzalez91, I appreciate  your kind offer... You can show your appreciation by creating a great looking application that your users will love...

I created these plugins for my own multimedia educational apps that I plan to roll out next year... I addressed some of my needs by creating the styling plugins like this one and the StyledText Editor to give the UI a more polished and professional look...

I also created the Window Resize Helper for creating great looking apps for any screen size... (something that was lacking in VisualNeo Win)

I'm more than happy to share them with the members of the VisualNeo community.

Thanks again for your offer...

Cheers

BTW... I did look into adding a shadow feature... but it was extremely complicated to implement.

 

alangonzalez91, impactband4u and 2 other users have reacted to this post.
alangonzalez91impactband4uRoxieiretz