Mercurial > hg > octave-nkf
diff scripts/gui/msgbox.m @ 20281:98d10871018a
Accept CREATEMODE argument for errordlg, warndlg, msgbox (bug #44775).
* errordlg.m: Update docstring. Use varargin to pass extra argument to msg_box.
* warndlg.m: Update docstring. Use varargin to pass extra argument to msg_box.
* msgbox.m: Update docstring.
* message_dialog.m: Issue warning if unimplemented CREATEMODE argument given.
Issue warning if icon type "custom" is used.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 11 Apr 2015 08:18:42 -0700 |
parents | 0e1f5a750d00 |
children | 777f26aa8e3e |
line wrap: on
line diff
--- a/scripts/gui/msgbox.m +++ b/scripts/gui/msgbox.m @@ -20,10 +20,11 @@ ## @deftypefn {Function File} {@var{h} =} msgbox (@var{msg}) ## @deftypefnx {Function File} {@var{h} =} msgbox (@var{msg}, @var{title}) ## @deftypefnx {Function File} {@var{h} =} msgbox (@var{msg}, @var{title}, @var{icon}) +## @deftypefnx {Function File} {@var{h} =} msgbox (@dots{}, @var{createmode}) ## Display @var{msg} using a message dialog box. ## ## The message may have multiple lines separated by newline characters -## (@qcode{"\n"}), or it may be a cellstr array with one element for each +## ("\n"), or it may be a cellstr array with one element for each ## line. The optional input @var{title} (character string) can be used to ## decorate the dialog caption. ## @@ -32,12 +33,16 @@ ## @qcode{"help"}, or @qcode{"warn"}. ## ## The return value is always 1. +## +## Compatibility Note: The optional argument @var{createmode} is accepted for +## @sc{matlab} compatibility, but is not implemented. +# ## @seealso{errordlg, helpdlg, inputdlg, listdlg, questdlg, warndlg} ## @end deftypefn function retval = msgbox (msg, title = "", varargin) - if (nargin < 1 || nargin > 3) + if (nargin < 1 || nargin > 4) print_usage (); endif