Sign in to follow this  
Followers 0
ChrisL

$GUI_DOCKAUTO

3 posts in this topic

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?

Thanks

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])

endfunc


[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  
Followers 0