Matlab 版 (精华区)
dragrect :用鼠标拖动矩形
gcbo :返回正在执行回叫信息的图形对象句柄
rbbox :创建橡皮框
selectmoveresize :选择、删除、调整或复制轴图形对象和用户界面控制图形对象
textwrap :对给定的用户界面控制读写返回覆盖的字符串矩阵
uiwait :
uiresume :控制程序的执行
waitbar :显示等待条
waitforbuttonpress:等待键或按钮的触发
uitoolbar
uipushtool
uitoggletool :创建工具按钮(用法如下)
ht = uitoolbar(h);
a = [.05:.05:0.95];
b(:,:,1) = repmat(a,19,1)';
b(:,:,2) = repmat(a,19,1);
b(:,:,3) = repmat(flipdim(a,2),19,1);
hpt = uipushtool(ht,'CData',b,'tooltipString','Hello',...
'ClickedCallback','msgbox(''Hello,How are you today?'')');
load drawsin.mat % load the colordata
hpt2=uipushtool(ht,'CData',J,'tooltipString','Draw Sin',...
'ClickedCallback','t=0:pi/48:2*pi;plot(t,sin(t))');
colordata(:,:,1) = rand(19);
colordata(:,:,2) = rand(19);
colordata(:,:,3) = rand(19);
htt = uitoggletool(ht,'CData',colordata,'tooltipString','Show a rand matrix',.
..
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.207毫秒