dropdown.m
来自「为了下载东西」· M 代码 · 共 20 行
M
20 行
%
% 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 + =
减小字号Ctrl + -
显示快捷键?