Sleep and UI

Hi all, affect

I’m looking for a solution concerning the use of Sleep and it’s effect on the UI. I have an agent that executes in the UI which loops through documents every 10 seconds and displays them in the UI. The code closes the current open document in the UI and displays the next one. The problem is that Sleep causes the whole UI to sleep, not just the code. Is there anything that can be done to pause the agent for an amount of time without affecting the UI?

Thanks!

Subject: Sleep and UI

If an agent is able to change the UI (no background agent), sleep will always cause the UI to pause as well. What sleep is good for is not to not interfere with the UI, but to not consume CPU resources when idling.

What are you trying to accomplish and why do you have to use that agent at all?

Subject: RE: Sleep and UI

Thanks for your response.

I’m working on a feature that will display the day’s room reservations on screen using the Kiosk option of the notes client. Most of the time, there will be too many reservations to display on one form so I have to alternate between forms. My goal is to have one form display for 10 seconds, then the next, looping through all of the documents and then starting over.

Subject: RE: Sleep and UI

The most simple approach would probably be to place an animated table on your form. You simply configure it to switch rows every xxxx milliseconds.

In every row you can have stuff like an embedded view or folder displaying the actual reservations.

Btw: What is Notes “Kiosk” mode? I’m not aware of that term in the Notes environment.

Subject: RE: Sleep and UI

Thanks for the suggestion, I’ll look into the animated table.

As for kiosk mode, it allows you to launch a specific database within the Notes client in a “full screen” mode without the Notes UI. Here’s the command line for it:

nlnotes.exe /kiosk server!!path\filename.nsf

Subject: RE: Sleep and UI

Ha! Can you believe that? After all those years of Notes and Domino development I wasn’t aware of that switch! Pretty funky. At least if you see it for the first time, not sure how useful it can really get.

Is there any other way to stop the application, except for ending the task from task manager (well, it isn’t called kiosk mode for nothing)?

Subject: RE: Sleep and UI

Yup, ALT-F4 should work