WildByDesign Posted July 6 Posted July 6 Yes, of course. Sorry about that. In the following example, if you do the rounded input or the rounded group separately, they both end up rounded as expected. Initially, try the script with just the input enabled. It's rounded. Then remove the comment from the rounded group and run script again. You'll notice that the group is rounded but the input on the inside of the group is squared. Spoiler #include "RoundGUI.au3" Opt("GUIOnEventMode", 1) $hGUI = GUICreate("test", 500, 500) GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents") GUISetBkColor(0x202020) _RGUI_RoundInput("test input", 0xFFFFFF, 100, 100, 200, 200, 0x404040, 0X404040, 15, 6) ;_RGUI_RoundGroup("Advanced", 0xffffff, 75, 75, 300, 300, 0x404040, 0x202020, 8, 6) GUISetState() While 1 Sleep(1000) WEnd Func SpecialEvents() Select Case @GUI_CtrlId = $GUI_EVENT_CLOSE Exit EndSelect EndFunc
argumentum Posted July 6 Posted July 6 15 minutes ago, WildByDesign said: but the input on the inside of the group is squared. #include "RoundGUI.au3" Opt("GUIOnEventMode", 1) ;;; https://www.autoitscript.com/forum/topic/212767-round-corner-gui-and-controls-udf/page/2/#comment-1544167 $hGUI = GUICreate("test", 500, 500) GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents") GUISetBkColor(0x202020) _RGUI_RoundGroup($hGUI, "Advanced", 0xffffff, 75, 75, 300, 300, 0x404040, 0x202020, 8, 6) _RGUI_RoundInput("test input", 0xFFFFFF, 100, 100, 200, 200, 0x404040, 0X404040, 15, 6) GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group GUISetState() While Sleep(1000) WEnd Func SpecialEvents() Select Case @GUI_CtrlId = $GUI_EVENT_CLOSE GUIDelete() Exit EndSelect EndFunc ;==>SpecialEvents You may need to read about GUICtrlCreateGroup(). WildByDesign 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
WildByDesign Posted July 6 Posted July 6 15 minutes ago, argumentum said: You may need to read about GUICtrlCreateGroup(). Thank you so much. I forgot to close the group. That solved the issue for me. argumentum 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now