3dude Posted December 24, 2007 Share Posted December 24, 2007 Could someone explain because I couldn't find anything useful in the help file! I created a GUI and when you press a button a calendar appears but when I close the calendar the whole program closes! Thanks View my blog :) 3dude's blog <= help with project :S Link to comment Share on other sites More sharing options...
martin Posted December 24, 2007 Share Posted December 24, 2007 Could someone explain because I couldn't find anything useful in the help file! I created a GUI and when you press a button a calendar appears but when I close the calendar the whole program closes! ThanksCan you post the script? It could be that you need to use $msg = GuiGetMsg(1);advanced mode so you can tell which window gave the message switch $msg[0] case $GUI_EVENT_CLOSE if $msg[1] = $guiChild then GuiDelete($guichild) if $msg[1] = $guiparent then exit endswitch Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
therks Posted December 24, 2007 Share Posted December 24, 2007 Off topic, but could you (3dude) modify that image in your signature to be at least half the width. You might have a wide resolution, but not everyone does. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
3dude Posted December 24, 2007 Author Share Posted December 24, 2007 to martin: Thanks I will post some of my script later! to Saunders: Sorry I noticed! I started cutting it in Photoshop but I had to go out! I will remove it! View my blog :) 3dude's blog <= help with project :S Link to comment Share on other sites More sharing options...
3dude Posted December 24, 2007 Author Share Posted December 24, 2007 (edited) How should I change it martin? While 1 $gm = GUIGetMsg() Switch $gm Case $GUI_EVENT_CLOSE ExitLoop Case $cal MsgBox(0, 'Calendar', GUICtrlRead($cal)) EndSwitch WEnd EndFunc Edited December 25, 2007 by 3dude View my blog :) 3dude's blog <= help with project :S Link to comment Share on other sites More sharing options...
3dude Posted December 25, 2007 Author Share Posted December 25, 2007 Hmm nobody seems to know! View my blog :) 3dude's blog <= help with project :S Link to comment Share on other sites More sharing options...
star2 Posted December 25, 2007 Share Posted December 25, 2007 (edited) #include <guiconstants.au3> $the_GUI = GUICreate ("Test" , 200 , 80,-1,-1,$WS_CAPTION) $button = GUICtrlCreateButton ("Show Calander" , 20 , 10 , 100, 25) $exit = GUICtrlCreateButton ("Exit" , 20 , 45 , 100, 25) GUISetState (@SW_SHOW, $the_GUI) $date = GUICreate ( "My GUI get date", 200,80,-1,-1,$WS_CAPTION) $back = GUICtrlCreateButton ("Back" , 20 , 45 , 100, 25) GUICtrlCreateDate ("1953/04/25", 10,10,185,20 ) GUISetState (@SW_HIDE, $date) While 1 $msg = GUIGetMsg () Select ; ==== buttons events ====== Case $msg = $exit Exit Case $msg = $button GUISetState (@SW_HIDE, $the_GUI) GUISetState (@SW_SHOW, $date) Case $msg = $back GUISetState (@SW_SHOW, $the_GUI) GUISetState (@SW_HIDE, $date) EndSelect WEnd is this what u need? Edited December 25, 2007 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
3dude Posted December 26, 2007 Author Share Posted December 26, 2007 Yes something like that! I will try to customize it and tell you! But thanks! View my blog :) 3dude's blog <= help with project :S Link to comment Share on other sites More sharing options...
DirtDBaK Posted December 30, 2007 Share Posted December 30, 2007 check out thishttp://www.autoitscript.com/forum/index.ph...ic=49866&hl=http://www.autoitscript.com/forum/index.ph...ic=55583&hl=all I did was search for parent ...use the search dude.. [center][/center] Link to comment Share on other sites More sharing options...
3dude Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks! (Nice avatar) View my blog :) 3dude's blog <= help with project :S Link to comment Share on other sites More sharing options...
DirtDBaK Posted January 1, 2008 Share Posted January 1, 2008 No problem glad I could help... Yeah I picked a good advatar [center][/center] Link to comment Share on other sites More sharing options...
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