Jump to content

I Must be doing something wrong with the Group Control


Starbug
 Share

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)

$Form1 = GUICreate("Form1", 593, 447, 193, 125, BitOR($WS_MINIMIZEBOX,$WS_SYSMENU,$WS_CAPTION,$WS_CLIPCHILDREN,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_BORDER,$WS_CLIPSIBLINGS))
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)
GUISetState(@SW_SHOW)


While 1
    Sleep(100)
WEnd

Func Form1Close()
    Exit
EndFunc

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.

Link to comment
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?

Link to comment
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
 Share

  • Recently Browsing   0 members

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