salim Posted July 12, 2012 Posted July 12, 2012 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> Local $msg $ParenT = GUICreate('', 700, 500, -1, -1, $WS_POPUP) GUISetBkColor(0x000000) GUISetState(@SW_SHOW) $ChilD = GUICreate('', 100, 100, 300, 300, $WS_POPUP) GUISetBkColor(0x800000) ;_WinAPI_SetParent($TeamInfoGUI, $AdminGUI) GUISetState(@SW_SHOW, $ChilD) Sleep(1000) WinMove($ChilD,"",100,300,100,100,10) Sleep(1000) WinMove($ChilD,"",100,100,100,100,10) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd If _WinAPI_SetParent aktif ... WinMove Error How To Set $ParenT Gui Handle $ChilD Gui..?? Thank's..
abberration Posted July 12, 2012 Posted July 12, 2012 Your question made very little sense to me. The best I can figure out is you are trying to get your commented line to be this: _WinAPI_SetParent($ChilD, $ParenT) That's probably not what you are looking for, but without a better description of your problem, you probably won't get a better answer than what I just gave you. Easy MP3 | Software Installer | Password Manager
salim Posted July 12, 2012 Author Posted July 12, 2012 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> Local $msg $ParenT = GUICreate('', 700, 500, -1, -1, $WS_POPUP) GUISetBkColor(0x000000) GUISetState(@SW_SHOW) $ChilD = GUICreate('', 100, 100, 300, 300, $WS_POPUP) GUISetBkColor(0x800000) _WinAPI_SetParent($ChilD, $ParenT) GUISetState(@SW_SHOW, $ChilD) Sleep(1000) WinMove($ChilD,"",100,300,100,100,10) Sleep(1000) WinMove($ChilD,"",100,100,100,100,10) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd If $ParenT = GUICreate('', 700, 500, 0, 0, $WS_POPUP) Gui Move Normal if $ParenT = GUICreate('', 700, 500, -1, -1, $WS_POPUP) Gui ChilD Move Random And Gui ChilD Error So... How To WinGetPos "Gui Child" Or WinGet...?? I don't know how to make gui child move normal when ParenT gui in -1,-1 position or any place in desktop.. Thank's..
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