question

Javier PL avatar image
0 Likes"
Javier PL asked Jon Abbott commented

Newline string command for presentation slides text?

Hi all,

I have some presentation slides with some labels attached so that every time they are updated, the text in the slide reads them and automatically updates itself. The point is, I would like to concatenate these different labels within the same text object/display, in a way that every label is written in a different line. However, so far I haven't found the typical "newline" command in the doc to solve this, and neither the \n \r appear to solve the issue cause they do not work out.

Setting up new texts nodes and separating them is another possibility, but just configuring one object which reads all the labels and write them would make everything simpler.

Here's the code of the "Text Display" field, to let you have an idea (obviously the "\n" are not working at all").

Object current = ownerobject(c);
treenode  textnode = param(1);
/***popup:DisplayText*/
/**Display Text*/

/** \nText: */
string text = /***tag:text*//**/current.up.text1 + "\n" + current.up.text2 + "\n" + current.up.text3/**/;

textnode.value = text;

return 1;

Thanks in advance,

Javi

FlexSim 19.0.2
textnewlinenew linepresentation slidesslides
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Jon Abbott commented

The 3D text object only draws one line of text. If you want to draw multiple lines, you need to use multiple 3D text objects.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jon Abbott avatar image Jon Abbott commented ·
It would be helpful if newlines were supported.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.