scrollable editbox in matlab gui
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ngozika Onunkwo
am 7 Mär. 2016
Kommentiert: Marten Amschler
am 26 Aug. 2020
How do I make the editbox in matlab scrollable
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 7 Mär. 2016
uicontrol('style','edit') automatically get capacity for vertical scroll bar if their 'Max' is set greater than 1.
If you need a horizontal scrollbar, see http://www.mathworks.com/matlabcentral/answers/242338-how-to-display-long-text-in-a-gui-window-input-to-textscan-for-generic-textfiles
1 Kommentar
Marten Amschler
am 26 Aug. 2020
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

Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!