Jump to content

Recommended Posts

  • Solution
Posted

Added to the wiki :) 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

This is really neat. I can’t wait to try this later. Thanks for sharing.

I do have a suggestion for the thread title in the forum, though. With “Round Corner GUI UDF”, it gives me the impression of rounded corners for the GUI only, like Windows 11 style.

I would suggest something like “Round Corner GUI Controls UDF” or similar. I think the word controls needs to be in there in some way.

  • Nine changed the title to Round Corner GUI and Controls UDF
Posted

I've tested this UDF a few times since you first posted it and I see a lot of potential here. I like it. And I can envision a lot of creativity can be had here by anyone using this UDF.

I do have a usability suggestion though. The one main thing that drew me away from it initially was the lack of autosize to text for the controls that normally support it such as labels and buttons.

I understand that you do some math with the corner radius, so I don't know how feasible it would be to support autosize to text. But if there is any way for you to add it, I think that it would be beneficial for usability. Especially for beginners like myself.

Posted

I apologize if I didn't explain it right. I'll use a code example:

Local $idExit = _RGUI_RoundButton("Exit", 0xB0B0B0, 10, 430, 80, 30, 0X404040, 0X404040, 6)

Here is what I am referring to:

Local $idExit = _RGUI_RoundButton("Exit", 0xB0B0B0, 10, 430, -1, -1, 0X404040, 0X404040, 6)

My intended suggestion was to be able to put -1 for the $iWidth, $iHeight sizes. For the regular button and label GuiCreate* options that would autosize the control based on the text and (as you stated) the font size. But if I do -1 like above, it doesn't work.

Posted

I now understand what you meant before.  I think it is a good idea, thanks.  So I made it possible to both labels and buttons.
Also added RichEdit using scrollbar example in the zip file.  Added some minor optimizations.

New version available. :)

Posted

@Nine great line found in your UDF :

($mScroll[$iID])[0]($iID, ($iY2 - $iTop)/($iBottom - $iTop), $iData)

with ($mScroll[$iID])[0] corresponding to the UserFunction ScrollEdit found... in the calling script RoundGUI Example3.au3
Nice interaction between the UDF and its example :)

 

"I think you are searching a bug where there is no bug..."

Posted (edited)

I just noticed with _RGUI_RoundGroup that the label text size at the top of the group does not match the text size set for the GUI. It’s only off by 1-2 pixels, but 1-2 pixel difference in a GUI can be important.

Changing that text size doesn’t seem to have any effect either. It only seems to change the text size of controls within the group box.

EDIT: Upon closer inspection, the font is different as well. I have the GUI set for Segoe UI Variable and the label over the Group is using normal Segoe UI.

Edited by WildByDesign
Posted

Sorry, @Nine but it was entirely my fault. No bug.

I had originally copy/pasted from your example to ensure that I did it correctly. It was the GUICtrlSetFont(-1, 10) right after the _RGUI_RoundGroup that I missed initially and that was what made me think that there was a bug.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...