ChrisL Posted March 7, 2007 Posted March 7, 2007 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 [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
lod3n Posted March 7, 2007 Posted March 7, 2007 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]
ChrisL Posted March 7, 2007 Author Posted March 7, 2007 Thank you [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now