On Thu, Nov 29, 2012 at 7:15 PM, Art Heimsoth <artst...@artheimsoth.com>wrote:
> I am having trouble getting the TimedMessage class to work for me.
> I would like to display a dialog with no timeout while the underlying
> dialog is doing work, and then be able to change that TimedMessage
> text and eventually end the TimedMessage.
>
> I use code similar to:
> busy = .TimedMessage~new("Dialog is busy #1", "Busy Dialog", -1)
> busy~execute
> ....
> ....
> busy~ok
>
Hi Art,
On the face of it, that looks like it should work. I may need to see more
of your code to help.
The simple extraction of your code above seems to work fine:
busy = .TimedMessage~new("Dialog is busy #1", "Busy Dialog", -1)
busy~execute
j = SysSleep(3)
say 'calling ok()'
busy~ok
::requires 'ooDialog.cls'
When I start it, after about 3 seconds, I see this:
C:\>simple.rex
calling ok()
C:\>
The dialog disappears at the same time as the calling ok() appears and I
drop back to the command prompt.
Although, I just thought to try this:
busy = .TimedMessage~new("Dialog is busy #1", "Busy Dialog", -1)
busy~execute
j = SysSleep(3)
say 'calling ok() 1'
busy~ok
busy = .TimedMessage~new("Dialog is busy #2", "Busy Dialog", -1)
busy~execute
j = SysSleep(3)
say 'calling ok() 2'
busy~ok
::requires 'ooDialog.cls'
In this case, I see:
C:\>simple.rex
calling ok() 1
calling ok() 2
C:\>
but I noticed that when the first calling ok() shows, the second dialog
appears, but the first dialog is still there. Hard to tell because the
second dialog exactly covers the first.
There is probably a bug here that was not fixed when I moved ooDialog to
the new native APIs.
But, the dialogs do all disappear, I don't have to kill them.
I'll investigate a little more. In my test above, the first dialog should
disapper when the first ok() is called. That it doesn't indicates
something is wrong.
--
Mark Miesfeld
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users