Jump to content

Inserting text options.


This topic is 4021 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Vandy:

Let's say your main text field (where you want to put the text) is tTextField (regular text field), and your drop-down (where you're storing your templates) is gTextField (text field, global). In your layout, set gTextField to be a pop up menu, using values from a custom value list, which you can define as TextField. In the layout, format the pop up menu to allow the user to edit the value list (include Edit...). Now you've got a pop-up value list, which you can edit. Click on Edit.. and enter (or paste) your text values.

Now, on the layout, create a button that says "Insert Text". Create a script for the button, called "Insert Text". That script will simply be:

Set Field [tTextField; gTextField]

Which would replace the contents of tTextField with the contents of gTextField. If you wanted to enter text in tTextField and then add the contents of gTextField to that, the script would be:

Set Field [tTextField; tTextField & gTextField]

HTH

-Stanley

Link to comment
Share on other sites

  • 7 years later...
  • Newbies

I am trying to put a pull down box with different items in it and when you click a item descriptions of that item would appear in a text box bellow it. Could someone explain how to get the gcode and text box in that example? any help would appreciated.

Link to comment
Share on other sites

This topic is 4021 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.