Jump to content

Trouble with GuiCtrlCreateGroup


Andreik
 Share

Recommended Posts

I tried this simple example and if I drag my window out of screen my GUI looks bad (like in image), know anyone why?

Posted Image

This is the code:

$MAIN = GUICreate("Example",300,200,-1,-1,0x16C80000,0x00000181)
GUICtrlCreateGroup("Mode",5,5,290,80)
$MODE1 = GUICtrlCreateRadio("Mode1",40,30,100,20)
$MODE2 = GUICtrlCreateRadio("Mode2",190,30,80,20)
GUICtrlCreateGroup("",-99,-99,1,1)
GUISetState(@SW_SHOW,$MAIN)

While True
    $MSG = GUIGetMsg()
    If $MSG = -3 Then Exit
    Sleep(10)
WEnd

When the words fail... music speaks.

Link to comment
Share on other sites

I tried this simple example and if I drag my window out of screen my GUI looks bad (like in image), know anyone why?

Posted Image

This is the code:

$MAIN = GUICreate("Example",300,200,-1,-1,0x16C80000,0x00000181)
GUICtrlCreateGroup("Mode",5,5,290,80)
$MODE1 = GUICtrlCreateRadio("Mode1",40,30,100,20)
$MODE2 = GUICtrlCreateRadio("Mode2",190,30,80,20)
GUICtrlCreateGroup("",-99,-99,1,1)
GUISetState(@SW_SHOW,$MAIN)

While True
    $MSG = GUIGetMsg()
    If $MSG = -3 Then Exit
    Sleep(10)
WEnd

Remove $WS_CLIPCHILDREN from the styles.
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...