Jump to content


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?


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

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

  • Recently Browsing   0 members

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