Jump to content

Modify a textstrin


Tops

Recommended Posts

Hi.

Is there a sulotion to this problem?

I have a textfield (string) and I need to change the text inside it while the program is running.

Problem is, I want to be able to set the staring line of the bold text. On the next line the

user should put in his data and this should be in plain text.

See the attached jpg.

ive been looking into the property nodes but I cant find a sulotion.

Any ideas?

Link to comment

I don't have a perfect example on how to do this, but I do have the Property Nodes that might help you.

TextFormater.jpg

Using the property node in this picture I can programatically change the font style, size, and color, of part of a text string. I would suggest setting the string to a constant like the following:

QUOTE

Start Time:

Operator:

Serial Number:

Then you could set each section to be bold or not, like from 0 to 14 is bold 15 to 17 is not bold, 18 to 27 is bold, and so on (my numbers may be off). Then the user can type in plain, while the headings will be in bold. Hope this helps.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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