Jump to content
Sign in to follow this  

I Must be doing something wrong with the Group Control

Recommended Posts


Can somebody test this for me?

Using the following code, if you run the script then open another window over the top of the script, then minimise it again, the background of the group control seems to mimic the window that was opened over it

1) Run the script

2) open another window in front of it. This browser window for example

3) minimise the other window (this browser)

4) The group control seems to have all the pictures/text of the other window as its bacground.

note that you can still interact with the control, its just a weird background

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)

GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Group1 = GUICtrlCreateGroup("Group1", 40, 48, 473, 305)
$Radio1 = GUICtrlCreateRadio("Radio1", 72, 88, 113, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 72, 144, 113, 17)
$Radio3 = GUICtrlCreateRadio("Radio3", 72, 192, 113, 17)
$Radio4 = GUICtrlCreateRadio("Radio4", 296, 152, 113, 17)
$Radio5 = GUICtrlCreateRadio("Radio5", 312, 208, 113, 17)
$Radio6 = GUICtrlCreateRadio("Radio6", 304, 264, 113, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)

While 1

Func Form1Close()

can somebody test this and confirm if this is a fault with my PC only, or find a fault with the way the GUI was drawn in my code.

Share this post

Link to post
Share on other sites

Both these command are the ones generating the effect. $WS_CLIPSIBLINGS, ,$WS_CLIPCHILDREN

Try to remove and you won't see the transparent background effect. :)

Edited by icadea

Share this post

Link to post
Share on other sites

Works without the Clipchildren fine.

unfortunatly i need the Clipchildren in my GUI as....

"'Document Objects' will only be visible if the Windows style $WS_CLIPCHILDREN has been used in GUICreate()." -- From the help files

any other ideas?

Share this post

Link to post
Share on other sites

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
Sign in to follow this