Jump to content

Text Formatting Script


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

Recommended Posts

  • Newbies

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.

Link to comment
Share on other sites

  • 2 weeks later...
  • Newbies

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.

Link to comment
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

Link to comment
Share on other sites

This topic is 5563 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.