Question

I am fairly new to Matlab and I am using GUIDE to create a GUI. I am looking to make a GUI that I can enter an item name and description and other stuff and then upon submit, they will be submitted into database.

My question is how to make a Description box , like where I put the item description. I did try the edit box but it is a single line object.

Thank you

Was it helpful?

Solution

Take a look at the documentation for the properties of uicontrols. You can set the Max and Min properties of an edit box. I know it seems crazy, but if Max - Min > 1, the edit box will accept multiline input; if Max - Min <= 1, it is single line only. Otherwise, the Max and Min properties have no effect on edit box controls.

Another option would be to have separate input methods for the name, description and other stuff that you want your users to enter via the GUI. Depending on your application, that might make for a cleaner GUI design.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top