problem uicontrol text in a GUI

tanguy.lyonlynch at infrabel.be tanguy.lyonlynch at infrabel.be
Fri Dec 10 16:16:00 CET 2010



Hi

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?

thanks a lot

tg




More information about the users mailing list