[scilab-Users] problem uicontrol text in a GUI

Calixte Denizet calixte at contrib.scilab.org
Fri Dec 10 16:26:59 CET 2010


Le vendredi 10 décembre 2010 à 16:16 +0100, tanguy.lyonlynch at infrabel.be
a écrit :
> 
> Hi
> 

Hello Tanguy

> Is it technically possible to have a multiline text in a text uicontrol in a
> figure?
> In the following example, I would like to have the text in two lines
> 
> 
> f = figure(1);
> editzone = uicontrol(f,"string", "text","position",[0 0 50 200]);
> editzone.fontsize = 15;
> set (editzone, 'string', "line1");
> editzone.string = editzone.string+"secondline"
> 
> it is maybee not supported by the text uicontrol?
> 

Yes it is possible in using HTML:

editzone.string = "<html>first line<br>second line</html>"

Best regards,

Calixte

> thanks a lot
> 
> tg
> 





More information about the users mailing list