MATLAB: How to remove or control the behavior of the scrollbar in an Edit Text box

automatic;barboxediteditboxMATLABoffonscrollslidertext;texteditturn

I would like to add or remove the scroll bar in an Edit Text box.

Best Answer

You can remove the scroll bars from an edit box by changing the values of the Max and Min properties of the box. If Max - Min > 1, text boxes accept multiline input and scroll bars are drawn. If Max - Min <= 1, text boxes accept only single-line input and no scroll bars appear.
If you want multiple lines of text with no scroll bar and do not require modification by the user, then you can use the Static Text box.
There is no way to create an Edit Text box with both multiple lines and no scroll bar.