At 07:00 2001-10-30 -0600, Mark Wilkinson wrote:
I have never tried, but I am pondering the possibilities of having Win32GUI and
PerlTK run simultaneously.  The problem, of course, is in the event looping -
both need to have their event loops executed, and yet the call to execute the
event loop is "blocking" as far as I can tell.  Has anyone ever tried to do
this?

It sounds like a... dubious idea to me :)

But try this: in the main event loop in Tk (if there is one), call

Win32::GUI::DoEvents();

Or if there isn't one, try rolling your own main event loop in Win32::GUI and call both Win32::GUI::DoEvents() and the Tk analogue. Or add a Win32::GUI::Timer control to call the Tk::DoEvents() (or whatever it's called).


  The solution is not entirely obvious to me, but perhaps it is obvious to
someone else...  I am just frustrated at how difficult it is to create custom
widgets in Win32, where it is childishly simple in Tk. If I could have the best
of both worlds it would be marvellous!

What do you mean by custom widget?

If you want to draw the contents of your own control, there is the Win32::GUI::Graphic control which has a Paint event.


/J

------ ---- --- -- -- -- -  -   -    -        -
Johan Lindström                    Boss Casinos
Sourcerer                     [EMAIL PROTECTED]
                 http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail


Reply via email to