WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Inserting special characters in text object (https://forum.worldviz.com/showthread.php?t=5361)

tokola 05-28-2015 10:00 AM

Inserting special characters in text object
 
This seems like a trivial thing to do, but could not find anything after searching on the forum and the documentation, quite extensively.

Is there a way to insert special characters (like TAB, RETURN, etc) in a text object? I've tried
Code:

viz.KEY_RETURN
but this return the ascii number of the character. It would be really useful to have multiple lines in a text object.

Thanks!

mape2k 06-02-2015 07:38 AM

You can do that by inserting special commands in the text string you want to display.

E.g. \n for a new line: 'This is the first line\nThis line will be below the first line.'

There are a couple of those commands, e.g. \t for a tab.


All times are GMT -7. The time now is 05:47 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC