Modal run loop input sources
Modal run loop input sources
- Subject: Modal run loop input sources
- From: "Tony" <email@hidden>
- Date: Sun, 26 Aug 2001 01:30:22 -0400
I have a problem trying to accomplish the following:
- first application should be disabled but present the dialog box informing
user to wait
- second application would send DO notification to first one, which would
cause
modal dialog box to be removed and user can continue working with the first
app
However, it looks like modal run loop would not pick DO notifications.
I seem to have solved this problem with the code like:
while( not_done)
{
run modal loop;
run default app loop for a short time;
}
I want to be sure that user won't be able to type characters in the main
window
of the first app (modal dialog sits above this main window) or click menu
items.
Applying 'solution' above, in my tests I was not able to do that. However,
that
could be due to a short duration of the default app run loop and lucky
timing
in my tests so far.
I would appreciate suggestions on better, simpler and sturdier way to
satisfy requirements
for two apps as described here.
Also, documentation of input sources for various types of run loops could
benefit
from more detailed explanations.
Thanks,
Tony