Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Basically what I have is a Notes field, and some formatting buttons along the top. (Plain, Bold, Italic, Underline).

I use one script for Bold, Italic, and Underline with the style as the script paramater. This is what it does...

TextStyleAdd ( Middle ( text field ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ); Get ( ScriptParameter ) )

The problem is, If I've selected styled text (and only styled text) I can't get filemaker to remove the style from it. It does work, however, when I select the styled text and a single (or more) character(s) that is not styled. (Script paramater "AllStyles")

TextStyleRemove ( Middle ( text field ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ); Get ( ScriptParameter ) )

I know I must be missing something. Help is appreciated.

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