Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 3rd, 2024, 10:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Tex input box to be shown in another part of the page
PostPosted: March 21st, 2011, 1:33 pm 
Offline

Joined: August 5th, 2010, 1:42 pm
Posts: 109
Opus: Creator v9 Opus v7
OS: windows
Hi there,
Does anyone know what I have to do in order to show some text that I write in a "text input box" to appear
in another part of the page,( I am trying to make a face window chat where you write something and by clycing a button the text would be shown on the top of the window like in normal chat). Thanks


For this message Isma has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Tex input box to be shown in another part of the page
PostPosted: March 21st, 2011, 1:56 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Isma,

You'd need two boxes. The Input Box with a variable called myInput and a normal text box with a variable called myOuput (right click inside the TB and select Insert Variable).

On the button you'll need to add the myInput contents to the myOuput contents. I'd use a script action with the following line:

Code:
myOutput = myOutput + "\n" +myInput


The "\n" in the middle just puts the myInput onto a new line in the textbox.

Regards,

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Tex input box to be shown in another part of the page
PostPosted: March 21st, 2011, 3:12 pm 
Offline

Joined: August 5th, 2010, 1:42 pm
Posts: 109
Opus: Creator v9 Opus v7
OS: windows
Thank you Mark,
just one more thing if you have a minute. I've done it and it's ok, but I am trying to make like a fictional dialogue chat, where one person have already written his part (normal text) on the top window,leaving an empty space between each sentence and the other have to insert his part in between the empty sentences by typing in the "input text and pressing the button.
I'm thinking about inserting in each empty line on the top a different variable BUT then I don't know how to change the scrip on the butoon to send the new "input text" to the new empty line on the top window. Any idea please?


For this message Isma has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Tex input box to be shown in another part of the page
PostPosted: March 21st, 2011, 5:14 pm 
Offline

Joined: August 5th, 2010, 1:42 pm
Posts: 109
Opus: Creator v9 Opus v7
OS: windows
Anyway I think I found how to do it with multiframes and changing slightly the script you sent me.
Thanks Mark because without the script (I don't know about scripts) i couln't have done it.


For this message Isma has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Tex input box to be shown in another part of the page
PostPosted: March 21st, 2011, 5:21 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
EDIT: Posted before, I realized that you'd already found a solutions :-)

Or something similar. Perhaps use an Array rather than different variables in the output TextBox. You'll need to select the Constant Expression option when you select Insert Variable.

1. create array in the Variables Tab of the Page properties.
2. Use an action or script object to fill in the fictional parts of the dialogue. IE

myArray[0] = "hello"
myArray[2] = "What is you name?"
myArray[4] = "How comes?"

Then in the Text Box, add all the array elements for the entire dialogue. IE

myArray[0]
myArray[1]
myArray[2] - etc - etc

On the button, have an action that copies the myInput variable into the correct array element when the user clicks enter - IE element [1] then [3] etc. This could just be a counter incrementing in twos.

This is a rather long winded and involved approached, but anything else probably requires a little more complex scripting :-)

Regards,

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
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 10 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