Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 5:47 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: new line
PostPosted: August 24th, 2006, 9:01 pm 
Offline

Joined: July 19th, 2006, 4:11 pm
Posts: 30
Does anyone know how to write a new line when adding text to a text box. I have tried using '\n' but no new line. Help!


Top
 Profile  
 
 Post subject:
PostPosted: August 25th, 2006, 1:45 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi,

Obviously you are using scripting, and the "\n" should work. Can you give an example of a few lines of code on what you are doing?

PS: If you happen to be working with Input Boxes, make sure on the Properties Tab >> "Text Input" - you have multiple line option selected. ;)

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject: input boxes and new line
PostPosted: August 25th, 2006, 11:22 am 
Offline

Joined: July 19th, 2006, 4:11 pm
Posts: 30
Many thanks Steve; that solves the new line problem, but how do I stop the user accessing the input box i.e. placing the cursor in the box and adding or editing the text?


Top
 Profile  
 
 Post subject:
PostPosted: August 25th, 2006, 12:38 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi beebotter,

Does it have to be an input box? - can it be a text box with an inserted variable?

If it has to be an Input Box then use the "Disable Object" found in the Actions GUI. That will stop the use of the input box. (you can enable it again if you like)

If you like using script and the input box is called "InputBoxOne", then a script of the following will disable access to it.

//code
InputBoxOne.Enable(false)


//Hope this helps :)

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject: Input box disable
PostPosted: August 25th, 2006, 4:38 pm 
Offline

Joined: July 19th, 2006, 4:11 pm
Posts: 30
Many thanks for the script and the advice Steve.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 98 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group