How can I create a multi-line Matlab edit box in a manual?

I am new to Matlab and I use GUIDE to create a GUI. I want to create a graphical interface in which I can enter the name and description of the element, and also after sending, they will be sent to the database.

My question is how to create a description box, for example, when I posted a description of an element. I tried the edit box, but this is a single line object.

thanks

+6
source share
1 answer

Take a look at the documentation for uicontrols properties. You can set the Max and Min properties in the edit box. I know this seems crazy, but if Max - Min > 1 , the edit box will accept multi-line input; if Max - Min <= 1 , this is only one row. Otherwise, the Max and Min properties do not affect the edit box controls.

Another option is to have separate methods for entering the name, description and other materials that you want your users to enter through the graphical interface. Depending on your application, this may lead to a cleaner GUI.

+12
source

Source: https://habr.com/ru/post/900933/


All Articles