Jump to content
Sign in to follow this  
Andreik

Trouble with GuiCtrlCreateGroup

Recommended Posts

Andreik

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

Share this post


Link to post
Share on other sites
Yashied

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.

Share this post


Link to post
Share on other sites
Andreik

Thanks Yashied, I forgot about my style.


When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.