Skip to main content
Known Participant
September 21, 2010
Question

How to get blue selection shapes with white text

  • September 21, 2010
  • 1 reply
  • 458 views

When you select this text you get a blue (or gray when unfocussed) selection shape (regardless the background color) while text becomes white (regardless the text color when not selected).

What is the best way (I am hoping on a solution that doesn't involve changing the ElementFormats of the ContentElements in order to get white text ) to achieve the same effect for FTE TextLine objects?

In the end I would like the user to be able to set the preferred (focused/unfocused) colors for the selection shapes and the selected content.

Thanks in advance for any pointers/solutions/... you might have for me.

- Benny

This topic has been closed for replies.

1 reply

Adobe Employee
September 23, 2010

If you are using TLF, you can control the way the selection draws using the SelectionFormat. There are separate selection format objects for focused, unfocused, and inactive selections. You can choose the blendMode, color, etc. See ISelectionManager focusedSelectionFormat, etc. (textFlow.interactionManager).

You cannot set the color of the text, since we don't recolor the text on selection, we just apply a blendMode. To do this would require changing the color in the underlying FTE object to set the ElementFormat, and then regenerating the lines and adding them into the display list. This was a higher cost than we were willing to incur. If you want to, though, you could probably change TLF to do this.Might be tricky to do this for the general case, but might not be too bad if you're looking at just a small use case.

- robin