|
Prev: Wish List Item - Different Extension for GUIDE figure templates
Next: Solving Ax=b for large sparse matrix(1e+6 X 1e+5) and cholinc failure
From: Norman on 7 May 2008 11:36 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 7 May 2008 12:16 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 7 May 2008 13:10
> >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! |