Madza91 Posted July 5, 2009 Posted July 5, 2009 Hello... By default in Windows 7 show and hide of GUI has effect, but when I create 1 GUI and show it and hide it more than one time, it has just first time effect... Does anybody know why? #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 406, 175, -1, 100) $Button1 = GUICtrlCreateButton("Show", 128, 96, 75, 25, 0) $Button2 = GUICtrlCreateButton("Hide", 208, 96, 75, 25, 0) GUISetState(@SW_SHOW, $Form1) $Form2 = GUICreate("Form1", 406, 175, -1, 300, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS), -1, $Form1) GUISetState(@SW_HIDE, $Form2) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUISetState(@SW_SHOWNOACTIVATE, $Form2) Case $Button2 GUISetState(@SW_HIDE, $Form2) EndSwitch WEnd [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
Madza91 Posted July 6, 2009 Author Posted July 6, 2009 I forgot to say, it works first time, and "hide" effect works everytime, but when show GUI 2nd, 3rd... time, then it just have been showed, wihtout effect... [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
wraithdu Posted July 7, 2009 Posted July 7, 2009 It works just fine no matter how many times I hide and show the 2nd GUI. It always hides, and it always shows un-activated.
Madza91 Posted July 9, 2009 Author Posted July 9, 2009 It's not point that GUI are always hiding and showing, that's ok, but effect on 2nd time and all times after that of showing isn't OK... GUI just show for me, without effect -.- [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
wraithdu Posted July 9, 2009 Posted July 9, 2009 (edited) Sorry, I don't know what you mean by 'without effect'?? EDIT - You mean the window fade-in effect? After the first time the window is shown, the fade is still there, it's just much faster. Edited July 9, 2009 by wraithdu
James Posted July 10, 2009 Posted July 10, 2009 Sorry, I don't know what you mean by 'without effect'??EDIT -You mean the window fade-in effect? After the first time the window is shown, the fade is still there, it's just much faster.Yeah, the Aero effect.I'm sure this happens because of default Windows behaviour? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Madza91 Posted July 11, 2009 Author Posted July 11, 2009 ...the fade is still there, it's just much faster.Ok, if it's still there, but it's just much faster, how to slow down that and return it to its default speed? [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
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