MATLAB对话框类型

    技术2022-07-10  131

    普通对话框:

    h=dialog(‘name’,‘普通对话框’,‘position’,[200 200 200 70]); % 代码使用普通对话框, uicontrol(‘parent’,h,‘style’,‘text’,‘string’,[‘读取 ’ filename ’ 结束。’],‘position’,[55 40 120 20],‘fontsize’,12); uicontrol(‘parent’,h,‘style’,‘pushbutton’,‘position’,[85 10 50 20],‘string’,‘确定’,‘callback’,‘delete(gcbf)’);

    h=warndlg(‘超出上下限’,‘警告’,‘modal’);

    helpdlg(‘帮助内容’,‘提示’);

    h=errordlg(‘内容错误’,‘错误’);

    questdlg(‘中午吃饭了吗?’,‘问题提示’,‘Yes’,‘No’,‘Yes’);

    Processed: 0.059, SQL: 12