| -----Original Message-----
| From: Morbus Iff [mailto:[EMAIL PROTECTED]
| 
| Ok. I have no clue what I'm talking about.
Welcome to the club ;-)

| to a friend, who has done VB stuff in the past, but nothing 
| with Perl GUI's.
Takes some getting used to. Goes for both VB and Win32-GUI. Transitioning
from one to the other can bring you close to serious brain damage because
you forget to consider the different philosophies. Pretty much like changing
from a car to a motorbike. You'll be amazed how fast and easy it is, but you
wonder how to get your groceries home.

| I was able to tell the webserver to non-block, in other 
| words, to listen 
| for a request for 1 second and move on. What I'd like to have 
| happen is 
| that when the webserver moves on, the GUI window listens for 
| events for a 
| second, and then moves on as well. So, there'd be a 1 second 
| time share 
| between the webserver listening and the GUI window listening.
| 
| Is this possible? And how?

Yes. I suggest you (and/or your friend) first go through the tutorial and
Erick's wonderful collection of basic info @
http://www.jeb.ca/howto/The_Win32-GUI_HOWTO.html
Once you know how (and how easy) to design a GUI, just do so. After
Show()ing the window, when you usually give it full control using
Win32::GUI::Dialog(), you just start your console program. And whenever this
thing can spare a time slice (after the 1-second-listen), you do
$abort = Win32::GUI::DoEvents();
which will make your GUI do what it wants to do, firing all pending events /
messages. This call returns asap, ie when no more messages are in the queue.
Now all that's left is exit your program if $abort < 0, and maybe one or two
more interactions with the GUI, like evaluating user preferences from
checkboxes and writing to textfields instead of printing to the console.

And, again: FORGET WHAT YOU KNOW ABOUT VB. Doesn't help here. Basic
knowledge about windows, controls, messages, methods, etc is OK, but that's
it.

Have fun
Harald

Reply via email to