How do I set a Gtk.StatusIcon as Text?

How to set text(value of variables) on a static text field in multiple rows in MATLAB'S GUI?

  • when I set a value of a variable let say ' var1' in the field,it is displayed but if I want to display another value of a variable say ' var2' at 2nd row.It doesn't work.It sets the value on 1st row which results in replacing the value of ' var1'.resulting in displaying only one value of a variable at a time I am using set(handles.var1,'String',var1); var1 is the name of my variable and also the name of my text field

  • Answer:

    I'm not sure if I quite understood, but try to separate your rows with char(10). Meaning that construct your two row string with like this: fulltext = ['first row' 10 'second row']. If you need better control of rows and cols, you should use tables. Also, if you are actually using lists, you can use cell arrays like this: fulltext = {'first row', 'second row'}

saadzebr... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.