Jump to content
Sign in to follow this  
scriptme

Text Formatting Script

Recommended Posts

I have a text field with paragraphs of text, and I wish to create a scripted button that automatically formats (the active selection) with a particualr color size and style. I would like to leave the remainder of the text formatted as it were originally entered but I would like to be able to make various different selections throughout the field and click on my script button to change that selection's formatting to a preset format (bold highlighted in yellow and larger). Thank you,

Chris.

Share this post


Link to post
Share on other sites

Welcome Chris,

I believe this is what you are after...

http://www.nightwing.com.au/FileMaker/demos9/demo907.html

Share this post


Link to post
Share on other sites

Hi Stephen, thank you for the suggestion, however, I am still using FMP v8 and this is for FMP 9. ;)

Anyone have any other ideas? It's been several years since I have used Filemaker and I have simply LOST my ability to create buttons & scripts. I used to do this all the time and I'm sure there is an easy solution.

Share this post


Link to post
Share on other sites

You might want to check out a demo file created by MoonShadow when vs. 7 first came out, called Style Assistant . IIRC, the demo file was produced before the field formatting was corrected, ie, prior to 7.0v3, text fields would hang onto the text format.

The demo may seem a bit complex (because it carries the concept through to allowing Management the ability to control allowable text attributes on a field-by-field level) but I think the concept is really good and you can use the scripts attached to the Text Attribute icon to answer your specific questions on this post. Of course, now with variables and conditional formatting it is much easier but prior to 8.5, this technique was handy.

Hey ... what ever happened to MoonShadow anyway? I thought he was quite clever.

LaRetta

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    MikeKD 
×

Important Information

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