Jump to content

Recommended Posts

Posted

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

 

 

Posted
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().

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

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...