Multiline input and spline text

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2009   #1
Multiline input and spline text

Hey hopefully quick question here someone can help me with.

I have a simple script for automating a simple text input for a project.
I have a multi line edit text box for entering text. When the user presses create the text in there is made a spline text.

The problem is if they put in two lines in the multi line edit text, it still comes out as one line in the spline text. Is there anyway to make it recognize that there's a line break or something?

Thanks
 
Old 02 February 2009   #2

rollout roll_test "test" width:400 height:100 (
	edittext edt_text "" width:300 height:50
	button btn_create "create"
	on btn_create pressed do (
		
		text text:(replace_LF_with_CRLF edt_text.text)
	)
	on roll_test open do ( edt_text.text = "Hello\r\nWorld" )
)
CreateDialog roll_test

'replace_LF_with_CRLF' was introduced in 3ds Max 2008.
 
Old 02 February 2009   #3
Ah Brilliant
Thanks!
 
Old 02 February 2009   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:18 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.