该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
使用滚动条和滚轮实现面板(panel)的动态滚动
在中文论坛上看到一个但是试了下运行不了
函数function varargout = gui1(varargin)% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @gui1_OpeningFcn, ... 'gui_OutputFcn', @gui1_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []);if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1});endif nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});else gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT
function gui1_OpeningFcn(hObject, eventdata, handles, varargin)set(handles.figu