我正在尝试像这里解释的那样做一个多行编辑框 uicontrol ,但我无法在我的 GUIDE 中使用它。
function listbox_Callback(hObject, eventdata, handles)
% hObject handle to message_list (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get the Java scroll-pane container reference
jScrollPane = findjobj(listbox);
% Modify the scroll-pane's scrollbar policies
set(jScrollPane,'VerticalScrollBarPolicy',20); % VERTICAL_SCROLLBAR_AS_NEEDED
set(jScrollPane,'HorizontalScrollBarPolicy',31); % HORIZONTAL_SCROLLBAR_NEVER
有什么建议吗?