editbox.m

来自「为了下载东西」· M 代码 · 共 17 行

M
17
字号
%
%  Syntax:  h = editbox(strText,intCoords,strCallback,strUserInput)
%
%  Inputs:  strText is the string that the editbox will contain when displayed.
%           intCoords is the matrix [x y w h] specifying the position and size
%           of the editbox.  strCallback is a string specifying the commands to
%           execute when editing is finished.
%
%  Result:  h is a handle to a new Edit uicontrol object.
%
%           Petur Snaeland, 25.04.1995
%
function [hEditBox] = editbox(strText,intCoords,strCallback,strUserInput)

hEditBox = uicontrol('Style','edit','Position',intCoords,'String',strText, ...
                     'BackgroundColor','White','Callback',strCallback,'Tag',strUserInput);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?