scrollable editbox in matlab gui

조회 수: 13 (최근 30일)
Ngozika Onunkwo
Ngozika Onunkwo 2016년 3월 7일
댓글: Marten Amschler 2020년 8월 26일
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