Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Make errordlg require response

Subject: Make errordlg require response

From: Maxx Chatsko

Date: 28 Jul, 2010 18:39:20

Message: 1 of 3

Hello all,
   How can I force the user to respond to an errordlg() box? wait? gcf?
                    Thanks
                     Maxx

Subject: Make errordlg require response

From: Andy

Date: 28 Jul, 2010 18:49:04

Message: 2 of 3

"Maxx Chatsko" <chatskom@chemimage.com> wrote in message <i2ptgo$g8a$1@fred.mathworks.com>...
> Hello all,
> How can I force the user to respond to an errordlg() box? wait? gcf?
> Thanks
> Maxx

doc errordlg

% read the Note about modal dialog boxes

Subject: Make errordlg require response

From: Walter Roberson

Date: 28 Jul, 2010 19:54:24

Message: 3 of 3

Maxx Chatsko wrote:

> How can I force the user to respond to an errordlg() box? wait? gcf?

ed = errordlg('Whatever the message');
waitfor(ed);


ed = errordlg('Some timed message');
uiwait(ed, 15); %15 seconds
if ishandle(ed); close(ed); end %it timed out instead of being closed

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us