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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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