Matlab GUI :: How to set the scroll to end of contents of the 'static text' screen

591 Views Asked by At

Usually when messages are loaded to static text, scroll appear to top of the messages. One needs to scroll down to look at all the messages.

Is there a way in which one can reset/set GUI properties so that one has to scroll up to look at the messages ?

1

There are 1 best solutions below

0
On BEST ANSWER

ok, the trick was to set "VALUE" parameter to length of the string in the output screen.

So, I used LISTBOX to display the STATIC TEXT with style-->listbox,Value--> 1 using ML GUIDE and then use the code in the script to change the VALUE parameter of the handles.

code : set(handles.TAG, 'Value', length(sTringToDisplay)); set(handles.TAG,'String',sTringToDisplay ); pause(1);

Hence the output screen will always point to the recent messages.