jdefockert Posted April 26, 2006 Share Posted April 26, 2006 (edited) Hi everybody, I have been creating several scripts over the last few month, one of which uses a relatively complex GUI (3 tabs, +/- 30 controls, two listcontrols and a listview control). More simple GUIs run without any problem. I run this GUI in the MessageLoop mode. While testing it and at first the GUI runs without problems and responds to all user actions. After performing a number of user actions on the GUI though the buttons become unresponsive. The action linked to them will not be started. Other controls do work though without any problem. Has anybody else encountered similar problems? Should I use the OnEvent mode for more complex GUIs. Should I use multiple windows instead of Tabs? Thank you in advance for your thoughts! Kind regards, Jasper de Fockert Edited April 27, 2006 by jdefockert Link to comment Share on other sites More sharing options...
GaryFrost Posted April 26, 2006 Share Posted April 26, 2006 Hi everybody,I have been creating several scripts over the last few month, one of which uses a relatively complex GUI (3 tabs, +/- 30 controls, two listcontrols and a listview control). More simple GUIs run without any problem.I run this GUI in the MessageLoop mode. While testing it and at first the GUI runs without problems and responds to all user actions.After performing a number of user actions on the GUI though the buttons become unresponsive. The action linked to them will not be started.Other controls do work though without any problem.Has anybody else encountered similar problems?Should I use the OnEvent mode for more complex GUIs.Should I use multiple windows instead of Tabs?Thank you in advance for your thoughts!Kind regards,Jasper de Fockertyou might get more help if you provide the code your having problems with. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AutoChris Posted April 27, 2006 Share Posted April 27, 2006 Check to make sure you haven't jumped out of your $msg loop. GUIOnEventMode is a good option too, but that is really more of a preference than a necessity. Link to comment Share on other sites More sharing options...
jdefockert Posted April 27, 2006 Author Share Posted April 27, 2006 (edited) Check to make sure you haven't jumped out of your $msg loop.GUIOnEventMode is a good option too, but that is really more of a preference than a necessity.Thank you for your answer. Would not exiting the $msg loop also kill the GUI?I run a loop with a double select case, it first checks whether a few input fields have changed, if none of the input fields have changed it looks at the value of the $msg variable.Then it loops.The fun thing is that it works fine for a while, but at a certain point the GUI just crashes, I need to use the taskmanager to close it.Thank you in advance for your input.PS: the code is kind of too long to post it here (967 lines).Kind regards,Jasper Edited April 27, 2006 by jdefockert Link to comment Share on other sites More sharing options...
GaryFrost Posted April 27, 2006 Share Posted April 27, 2006 Thank you for your answer. Would not exiting the $msg loop also kill the GUI?I run a loop with a double select case, it first checks whether a few input fields have changed, if none of the input fields have changed it looks at the value of the $msg variable.Then it loops.The fun thing is that it works fine for a while, but at a certain point the GUI just crashes, I need to use the taskmanager to close it.Thank you in advance for your input.PS: the code is kind of too long to post it here (967 lines).Kind regards,Jasperattachments work also SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
jdefockert Posted April 27, 2006 Author Share Posted April 27, 2006 attachments work alsoOkay please find the code attached.Thanks for the tip.Create_Packages_Script_v1.zip Link to comment Share on other sites More sharing options...
GaryFrost Posted April 27, 2006 Share Posted April 27, 2006 Okay please find the code attached.Thanks for the tip.just did a quick look, haven't tested, but give it a tryGary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
jdefockert Posted May 22, 2006 Author Share Posted May 22, 2006 Hi Gary, Thank you for the tip, I have tested it today (first time I had the opportunity to use the script and the problem did not occur. I copied the double Select...Case...Endselect from an example for using _GUICtrlEditGetModify. Thank you for spotting this there is indeed no reason to have a double Select...Case...Endselect and it seems to be the problem. Kind regards, Jasper de Fockert 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