| MATLAB Central > MATLAB Newsreader > How to display default values in GUI? |
|
|
|
Subject: How to display default values in GUI? From: Chris Sorrento Date: 19 Jul, 2010 14:19:05 Message: 1 of 4 |
|
I have designed a GUI with multiple textboxes where I collect user input values (numerical values) and pass them to a function file for evaluation. But there are too many textboxes. To make the GUI more user friendly, I put default/suggested values in the "String" property of PropertyInspector. But Matlab reads that as []. So, I have to put my curser in each box and then either hit enter or tab to next textbox. This defeats the purpose of putting in default values. Any suggestions as to how I can get around this? I guess same question applies to other components in GUI - list, slider, radio buttons. Thank you in advance for taking time to read this. |
|
Subject: How to display default values in GUI? From: Sean Date: 19 Jul, 2010 15:35:04 Message: 2 of 4 |
|
"Chris Sorrento" <remove.this.string.agairan@hotmail.com> wrote in message <i21msp$db5$1@fred.mathworks.com>... |
|
Subject: How to display default values in GUI? From: Chris Sorrento Date: 19 Jul, 2010 16:07:04 Message: 3 of 4 |
|
Thank you Sean. I did create the GUI using GUIDE and I was simply changing the "String" value from within PropertyInspector. But as you have suggested, I might need to add this code that you suggested into the GUI .m file. That is exactly the guidence I was looking for. Thanks for your help. |
|
Subject: How to display default values in GUI? From: Andy Date: 19 Jul, 2010 16:53:03 Message: 4 of 4 |
|
"Chris Sorrento" <remove.this.string.agairan@hotmail.com> wrote in message <i21msp$db5$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| gui user input def... | Chris Sorrento | 19 Jul, 2010 10:24:22 |
