ed
much
messier than just avoiding the event loop altogether.
Kev.
[EMAIL PROTECTED] on 03/01/2001 18:31:44
To: [EMAIL PROTECTED] @ INTERNET
cc:
Subject: Re: [perl-win32-gui] Event processing
okay, i think i see what you mean...you want a GUI that starts a loop
which can conditionally sp
okay, i think i see what you mean...you want a GUI that starts a loop
which can conditionally spawn a second window, and when that second
windows is closed, it returns to the loop and continues processing...
i can't figure it out either...my current theory is that since the
Loop_Click event has
okay, i think i see what you mean...you want a GUI that starts a loop
which can conditionally spawn a second window, and when that second
windows is closed, it returns to the loop and continues processing...
yes.
i can't figure it out either...my current theory is that since the
You have taken out the looping which is why it works. This is not
what I wanted. I wanted to loop a set number of times and stop under
a given condition to display my own window. Example, I want to read
in lines from a file and check the lines for errors. If an error is
found I
you did not call dialog() for the second window:
sub Loop_Click {
foreach $i (0 ... 3) {
Show_Win2($i);
sleep 1;
}
Win32::GUI::Dialog(); ##add this and it works
}
-rob
David Hiltz wrote:
Below you will a small Win32::GUI program that displays a window with a
you did not call dialog() for the second window:
When I do that it still doesn't stop on each window. I'm running
Win32-gui 0.490.
If I move the Win32::GUI::Dialog() after this line:
$Win2-Update();
It does stop but it also does very strange things (like doesn't let
me
oops...that's odd, because i was sure i had gotten it to work...oh,
well...how about this:
use Win32::GUI;
$i=0;
$Win = new Win32::GUI::Window(
-left = 341,
-top= 218,
-width = 300,
-height = 213,
-name
7 matches
Mail list logo