2.5

2.5 | 2 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.12 KB File ID: #4209
image thumbnail

uidlg.m

by Stefan Billig

 

02 Dec 2003 (Updated 13 May 2004)

Creates GUI-dialog with title, message and buttons.

| Watch this File

File Information
Description

GUI window is created with buttons and messages the user can specify. The String that is pressed by the user will be returned.

% Usage:
%
% button=uidlg(title,message,button1,button2,button3,...)
%
% At least 3 input args must be specified. Any further button is
% optional.
%
% Example:
% button=('Error','Check DDE Server Connection','OK','Cancel')

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
23 Jan 2004 Jonas Dorn

In the original code, the window size is only dependent on the size of the question-string, which makes the buttons overlap if it is too short. (can be corrected pretty easily)
However, the code did what I was looking for: It provided me with a good starting point for coding an alternative to the matlab built-in questdlg. Thanks

02 Feb 2004 Derek Goring

The width of the dialog box is not correct. It always cuts off the last letter of the message. If the message is too short, the buttons overlap. I guess these are easily fixed, but it means you can't just use this m file straight off.

Please login to add a comment or rating.
Updates
05 May 2004

As remarked in the ratings, the window size has not been set according to the message lengths to be displayed; thus cutting off the message's last chars.

13 May 2004

As remarked in the ratings, the window size has not been set according to the message lengths to be displayed; thus cutting off the message's last chars.

Tag Activity for this File
Tag Applied By Date/Time
gui tools Stefan Billig 22 Oct 2008 07:10:06
example Stefan Billig 22 Oct 2008 07:10:06
gui Stefan Billig 22 Oct 2008 07:10:06
dialog window Stefan Billig 22 Oct 2008 07:10:06
buttons Stefan Billig 22 Oct 2008 07:10:06

Contact us at files@mathworks.com