Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 16 NOV 2003 02:05:34PM Godfrey Farrugia wrote:

In a batch loop-run of repeating same processes, I need to put up a timed message (say, for 5 seconds) every time the loop starts to inform the user what's happening next.

Is there any way that the user can do something to indicate he wants to abort/interrupt the process? If so, how do I trap the user interaction?


At 17 NOV 2003 05:37AM Tim Marler wrote:

Godfrey,

Don't use a timed message. Use a processing message, type "GC" from memory. There is an example in the help.

Tim


At 18 NOV 2003 02:10PM Gerald Lovel wrote:

Godfrey,

I had this problem too, but I was given a different suggestion. Create a window which looks like a message, with your text in a control, and a cancel button.

Each time the loop starts, check that the window is open and update the text. If the window is no longer open, it has been canceled (maybe). With only a small amount of work, you can encapsulate this process into a routine with initialize, update, and cancel options.

This sounds like a good idea when the number of iterations of the loop is not known in advance, so that a gas gauge would not work.

Gerald


At 19 NOV 2003 03:29AM Tim Marler wrote:

Gerald,

That sounds like a good idea. Altenatively, using the "GC" option you could just set the width of the progress bar to 0 or 1 and only have 1 iteration. Saves you the effort of creating another screen. Of course, if you want the other options then I agree your suggestion is probably better suited.

Tim


At 26 NOV 2003 02:45PM Godfrey Farrugia wrote:

Thanks, I ended up making a window that gives me the control I need.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/4f92a739561faf7685256de00068e140.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1