From: Norman on
I can't find a solution to my problem, but maybe I am just
looking for the wrong keywords?

I need to have questdlg and msgbox in a time-limited
version: After a couple of minutes (or whatever) the box (or
dialog) should be closed automatically (with default answer).


Is there anything like that available?
From: Walter Roberson on
In article <fvsi94$3uv$1(a)fred.mathworks.com>,
Norman <norman.nospam.violet(a)tu-berlin.de> wrote:
>I can't find a solution to my problem, but maybe I am just
>looking for the wrong keywords?

>I need to have questdlg and msgbox in a time-limited
>version: After a couple of minutes (or whatever) the box (or
>dialog) should be closed automatically (with default answer).

>Is there anything like that available?

No for questdlg, yes for msgbox.

For questdlg, you will need to edit questdlg.m
fairly close to the end, and adjust the current uiwait(QuestFig)
call.

msgbox() returns a handle graphic object, and keeps running.
If you want a timed wait, you can use uiwait() with that handle,
supplying a timeout in the second argument of uiwait()

--
"Not the fruit of experience, but experience itself, is the end."
-- Walter Pater
From: Norman on
> >Is there anything like that available?
>
> No for questdlg, yes for msgbox.
>
> For questdlg, you will need to edit questdlg.m
> fairly close to the end, and adjust the current
uiwait(QuestFig)
> call.

Ah, many thanks! I immediately adjusted questdlg into
'questdlgtimeout'. Works great!


> msgbox() returns a handle graphic object, and keeps running.
> If you want a timed wait, you can use uiwait() with that
handle,
> supplying a timeout in the second argument of uiwait()

This does not work, also uiwait(msgbox('hello'),1) does not,
but that doesn't matter, since I can adapt questdlg now.

Thanks again!