Matlab 版 (精华区)
发信人: zjliu (秋天的萝卜), 信区: Matlab
标 题: [转载]关税8
发信站: 哈工大紫丁香 (Thu Jun 12 21:24:56 2003)
h_wfig=warndlg('Warning Message String',...
'warning Dialog');
h_efig=errordlg('Not a valid input',...
'Input Error','on');
h_helpdlg=helpdlg('Try again!');
msgbox('My Error Message','Error Window Name','error');
msgbox('My Help Message','Help Window Name','help');
msgbox('My Warning Message','Warning Window Name','Warn');
%msgbox('My Message','Window Name','custom', iconData,iconCmap);
%string_returned=questdlg(QuestionString,ButtonString_1,ButtonString_2);
%string_returned=questdlg(QuestionString,ButtonString_1,ButtonString_2,Button
String_3,DefaultString);
question_ans=questdlg('Do you want a hard copy',...
'OUTPUT','Yes','N0','N0')
if strcmp(question_ans,'Yes')
print
end
answers=inputdlg({'My first question',...
'My 2nd question',...
'My 3rd question'},...
'Window Name',[1 2 1],...
{'defAns1','defAns2','defAns3'}); %
练习:
对msgbox 做一个你自己的图标
--
╔═══════════════════╗
║★★★★★友谊第一 比赛第二★★★★★║
╚═══════════════════╝
※ 来源:.哈工大紫丁香 bbs.hit.edu.cn [FROM: 202.118.229.92]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.893毫秒