scrollable editbox in matlab gui

13 次查看(过去 30 天)
How do I make the editbox in matlab scrollable

采纳的回答

Walter Roberson
Walter Roberson 2016-3-7
uicontrol('style','edit') automatically get capacity for vertical scroll bar if their 'Max' is set greater than 1.
  1 个评论
Marten Amschler
Marten Amschler 2020-8-26
Thanks for the code! I use it to generate a protocoll within my tool. But everytime i append something to this protocoll the scrollbar jumps back to the top (see image). Can i force the scrollbar to the bottom?
the edit box with scrollbar is calles "edit_protocol" and i append the string in that way:
protocol = get(handles.edit_protocol,'String');
protocol{end+1} = sprintf( '\n Plane fittet over %0.1d points. Std: %0.1f [cm]',(size(P_Plane,1)),(std(delta)*100));
set(handles.edit_protocol,'String',protocol)
thank you

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by