Jump to content
Sign in to follow this  


Recommended Posts


IF you have built a GUI which includes Child Gui's for Transparent images, how do you use GUICtrlSetResizing ( -1, $GUI_DOCKAUTO )

When I stretch the Gui all of my controls stretch except for the child Gui which stays put in it's original position.

Could someone tell me what I need to do please?


Share this post

Link to post
Share on other sites

A child GUI is not a control, it's a window, so it doesn't dock.

So on $GUI_EVENT_RESTORE, $GUI_EVENT_MAXIMIZE and $GUI_EVENT_RESIZED, you need to WinMove your child GUI with the results of running WinGetClientSize on the main GUI. This function should work:

func resizeChild($hParent,$hChild)

$parentSize = WinGetClientSize ($hParent)

WinMove ($hChild, "", 0, 0, $parentSize[0],$parentSize[1])


[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

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.