MikeRoberts Posted September 14, 2004 Posted September 14, 2004 I have a script that adds the user name, date etc. into a text field called "CS Notes" the user then carrys on typing what they have to say about the customer. I would like to set the script to use a certain colour for the text entered by the script and then by the user. Is this possible??? I have read about a calculation changing the font style but not through a script like this. Thanks guys... my 1st post oh and thanks to any girls out there too. ... in advance Mike
-Queue- Posted September 14, 2004 Posted September 14, 2004 Set Field [text1; TextColor( "blah"; RGB( 0; 255; 255 ) ) & TextColor( " "; RGB( 255; 0; 0 ) )] will set text1 with a blue blah, followed by a 'red' space. However, since spaces are not colored, it will not look any different. Text added by users after the space will be formatted in red, as long as they click after the space before typing. You may want to make it easier and have the user first enter the details in a separate field, then concatenate the data using different TextColors.
MikeRoberts Posted September 15, 2004 Author Posted September 15, 2004 Set Field [text1; TextColor( "blah"; RGB( 0; 255; 255 ) ) & TextColor( " "; RGB( 255; 0; 0 ) )] will set text1 with a blue blah, followed by a 'red' space. However, since spaces are not colored, it will not look any different. Text added by users after the space will be formatted in red, as long as they click after the space before typing. You may want to make it easier and have the user first enter the details in a separate field, then concatenate the data using different TextColors. It works EXCEPT The main problem is it wipes any previous text in the field. Any ideas?
MikeRoberts Posted September 15, 2004 Author Posted September 15, 2004 It's ok I created an in between Scratch field and all is working very well now. Thanks big time Mike
Bekah Posted September 15, 2004 Posted September 15, 2004 Don't know if this is appropriate Mike but when I saw your post I almost sh _ _! It's exactly what I needed to do and everyone helped Me. Just yesterday. I hope I do this right. The link is: http://www.fmforums.com/threads/showflat...true#Post123387 Just to give you more ideas, of course. I'm going to try this Queue one also, thank you Queue. Did you know you can use auto entry on that field so you maybe don't need a script? On this link I gave you, the last attachment shows what I ended up with but now boss wants to change it again. Is server the same as Developer 7? I have Custom Functions for colors that are very cool. Helping someone is fun.
Recommended Posts
This topic is 7636 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 accountSign in
Already have an account? Sign in here.
Sign In Now