I have created a multi-line Edit text component by executing the following code:
text = {'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z'};text = [ text text text ]; % Make it longer to ensure a scroll bar.
f1 = figure;u1 = uicontrol(f1,'Style','edit','Units','normalized','position',[0 0 1 1],... 'String',text,'Max',1.001,'Min',0);
When this Edit text component is displayed, the slider position is always at the bottom of the scroll bar. I would like to set the slider position so that it is at the top of the scroll bar when the figure is displayed.
Best Answer