Mingre Posted April 22, 2013 Posted April 22, 2013 #include Local $aMove[2] $hParent = GUICreate('Parent') $hChild = GUICreate('Child', -1, -1, 0, 0, -1, -1, $hParent) GUISetState(@SW_SHOW, $hParent) GUISetState(@SW_SHOW, $hChild) $aPrevPOS = WinGetPos($hChild) Do $ChildPOS = WinGetPos($hChild);Sleep(250) If $ChildPOS[0] <> $aPrevPOS[0] Or $ChildPOS[1] <> $aPrevPOS[1] Then $aMove[0] = $ChildPOS[0] - $aPrevPOS[0] $aMove[1] = $ChildPOS[1] - $aPrevPOS[1] $ParentPOS = WinGetPos($hParent) WinMove($hParent, '', $ParentPOS[0] + $aMove[0], $ParentPOS[1] + $aMove[1]) $aPrevPOS = WinGetPos($hChild) EndIf Until GUIGetMsg() = $GUI_EVENT_CLOSE What should I add to make the child GUI move as the parent GUI is moved? Thanks!
FireFox Posted April 22, 2013 Posted April 22, 2013 Hi, Take a look at the $WS_EX_MDICHILD exstyle. Br, FireFox.
PlayHD Posted April 22, 2013 Posted April 22, 2013 or you can use _WinApi_SetParrent My UDF : _WinShake, _WinSplitMy Apps : Google Guitar Bot, PuzzleGameDesign Gui : Interesting Tabs Design, RBox Project (abandoned), Animated Gui on Exit
FireFox Posted April 22, 2013 Posted April 22, 2013 You're welcome Don't forget to make a forum search next time, I'm pretty sure it was already asked.
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