SuddenGunfire Posted January 13, 2010 Share Posted January 13, 2010 Okay basically I have added an "about" button to my program and it loads fine, but when I close the GUI that is created by clicking the "about" button it closes my whole program. I only want it to close the "about" GUI. Any help would be appreciated. Link to comment Share on other sites More sharing options...
FuryCell Posted January 13, 2010 Share Posted January 13, 2010 Can we see some code? Make sure you are using GUIDelete() instead of Exit. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
FuryCell Posted January 13, 2010 Share Posted January 13, 2010 Can you post the entire script? We cant do much without seeing the code that fires when the about gui is closed. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
JoseS Posted January 13, 2010 Share Posted January 13, 2010 (edited) I had the same problem once, and I remember I solved by using a different variable for the GuiGetMsg() function. Notice that in the main part of the program, you call it $nMsg. Then, in the About part, you use $nMsg again to query the status of the About GUI. Also, in the second While/Wend loop, I added the following to my script: While 1 $mMsg = GUIGetMsg() Switch $mMsg Case $GUI_EVENT_CLOSE GUIDelete($About) ExitLoop EndSwitch WEnd See if that helps... Jose Edited January 13, 2010 by JoseS Link to comment Share on other sites More sharing options...
FuryCell Posted January 13, 2010 Share Posted January 13, 2010 Replace the Exit on the $GUI_Event_Close for the about box with guidelete(). HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
SuddenGunfire Posted January 13, 2010 Author Share Posted January 13, 2010 I did but i keeps saying "Missing spectator character ()GUIDELETE ^ Link to comment Share on other sites More sharing options...
SuddenGunfire Posted January 13, 2010 Author Share Posted January 13, 2010 @ JoesS it just closes the whole thing again... Link to comment Share on other sites More sharing options...
FuryCell Posted January 13, 2010 Share Posted January 13, 2010 (edited) Are you sure the syntax is correct? Its GUIDelete() not ()GuiDelete. Edited January 13, 2010 by P5ych0Gigabyte HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
SuddenGunfire Posted January 13, 2010 Author Share Posted January 13, 2010 Damn, sorry that's what I was doing My bad... It works great man!! Thanks Link to comment Share on other sites More sharing options...
FuryCell Posted January 13, 2010 Share Posted January 13, 2010 Damn, sorry that's what I was doing My bad... It works great man!! ThanksGlad I could help. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. 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