📄 dropdown.m
字号:
%
% Syntax: h = dropdown(strList,intCoords,strCallback)
%
% Inputs: strList is the list that the dropdown box will contain when displayed.
% intCoords is the matrix [xmin ymin w h] specifying the position and size
% of the editbox. strCallback is a string specifying the commands to
% execute when selection has occurred.
%
% Result: h is a handle to a new popup uicontrol object.
%
% Petur Snaeland, 01.05.1995
%
function [hDropdown] = dropdown(strList,intCoords,strCallback)
hDropdown = uicontrol('Style','popup', ...
'Position', intCoords, ...
'String',strList, ...
'BackgroundColor','w', ...
'Callback',strCallback );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -