On Tue, Aug 13, 2013 at 2:08 PM, Art Heimsoth <artst...@artheimsoth.com>wrote:
> > For your specific problem here, I would write my own timed message
> > dialog. When using it, send a reference to the executing dialog to
> > your timed message dialog. In your timed message, periodically
> > check back to see if the other dialog is still alive. Quit the
> > timed message if you discover the other dialog is ended.
>
>
> I tried to start a second dialog and then use WinTimer in that dialog, with
> the intention of setting a shared variable from the main dialog when I
> wanted
> the second dialog to end. The second dialog would put up a panel that
> includes a "Cancel" button to allow manual cancellation if necessary.
>
> The problem I am running into is I have not found a way to allow the main
> dialog to regain control and continue to do work while the timer is
> running.
> I can cancel the second dialog with the "Cancel" and that is when the first
> dialog resumes operation. What am I missing? I have the second dialog
> defined with the STYLE DS_MODALFRAME - should it be something else?
>
Well I don't think I'd use DS_MODALFRAME, but that has nothing to do with
your problem.
It is most likely the way you are starting the second dialog. If you use
execute(), the method will not return until the second dialog ends, and
your first dialog can not continue until execute() returns.
You need to use popup() to start the second dialog. The popup() method
returns immediately and your first dialog can continue working.
I'm pretty sure that is what you are missing. But, if you are already
using popup(), then I would need to see some code to say why the first
dialog doesn't continue.
--
Mark Miesfeld
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users