Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Single- and Multi-line Edit Controls

I'm writing a GUI in GUIDE but when I open it and when I perform an action I keep getting this warning:

Warning: Single line Edit Controls can not have multi-line text 
> In openfig at 135
  In gui_mainfcn>local_openfig at 286
  In gui_mainfcn at 234
  In Var_final at 42 
Warning: Single line Edit Controls can not have multi-line text 
Warning: Single line Edit Controls can not have multi-line text 

Is it a problem? I've read you need to set the Max value to 2, but the warnings seem to persist.

What can I do?

like image 635
Fodex Avatar asked Jul 11 '26 10:07

Fodex


1 Answers

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.

like image 135
Sam Roberts Avatar answered Jul 14 '26 06:07

Sam Roberts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!