WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-28-2015, 10:00 AM
tokola tokola is offline
Member
 
Join Date: Nov 2012
Posts: 67
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!
Reply With Quote
  #2  
Old 06-02-2015, 07:38 AM
mape2k mape2k is offline
Member
 
Join Date: Mar 2013
Posts: 60
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
input from a text file dig Vizard 5 10-20-2013 01:20 AM
Can I change the text size of slider object? jincheker Vizard 1 08-26-2011 11:20 AM
How to move a text object and its children text objects as a whole knightgba Vizard 2 08-24-2010 10:21 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Placing Text onto another object??? Elittdogg Vizard 4 04-08-2008 02:15 PM


All times are GMT -7. The time now is 06:10 PM.


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