orbital has asked for the wisdom of the Perl Monks concerning the following question:
Besides the point that the management are a bunch of monkeys for hiring someone with so little technical competence, I am no stuck babysitting. Having one of the key virtues of perl down "Laziness" I decided I would be better off porting my major tools over to a GUI, this way I didn't have to hold my breathe while he tried to learn dos. I have had quite a bit of success at using Win32::GUI for dealing with my problem. However today I hit a brick wall with one of the scripts.
I have one Window object that accepts all the user input and flags with a submit button on the window. When the submit button is hit I have an event that displays the result in a different Window object that then becomes visible. This works great!
sub submit_Click { print $count++; %Config = (); # Several lines of logic to determine and stores # users values and settings into %Config display_results(/%Config); #builds my results window $Display->Show(); #my display window }
My problem is when I terminate the result window after the first time everything seems to break.
I try to do another query using my submit button, it seems that my submit_click event is ignored the second time around, however the result window still pops up but this time with different results, it doesn't pull any of my definitions or flags, it justs uses the code defaults. Notice my submit_click event I added this line for debuggingsub Display_Terminate { $Display->Hide(); $Window->Enable(); #Grasping at straws return 0; }
print $count++;
Any ideas on what is causing my event to not be reconized properly?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::GUI event issues
by orbital (Scribe) on Mar 30, 2001 at 03:52 UTC |