Page 1 of 1

How to shade a line of text?

Posted: Tue Jul 27, 2010 1:19 pm
by MichaelBluejay
I'd like to shade certain lines of text in a list field.

I tried setting the backgroundColor of the line to a light grey, but there's not enough "padding" on the top, bottom, and left of the text, and the highlight color doesn't go wall-to-wall (all the way to the right edge of the field).

My next attempt was to draw a vector rectangle and place it over the text, but I can't find any way to make the light-grey rectangle transparent. It completely covers up the line of text.

What's a good way to shade a line of text?

While I'm at it, I can't change the backgroundColor of a rectangle with the Tool Palette after the rectangle has been created. Choosing a new color for the graphic has no effect, even though the graphic is clearly selected. Is this a bug?

Thanks for your help!

Re: How to shade a line of text?

Posted: Tue Jul 27, 2010 3:17 pm
by dunbarx
The "blendlevel" of your graphic can be set to a value between 0 and 100. Try 50.

As for changing the backGroundColor, I am not sure. With an existing graphic, it seems the tool palette has no effect, and you have to manage this either under script control or in the "fill" gadget in the "colors and patterns" pane of the inspector. The tool palette does allow new controls to be made with the effects chosen, but not, as you say, an existing one. I'll ask...

Craig Newman

Re: How to shade a line of text?

Posted: Wed Jul 28, 2010 2:31 am
by Curry
You may want the graphic behind your (transparent) field.

Re: How to shade a line of text?

Posted: Wed Jul 28, 2010 10:15 am
by MichaelBluejay
Thanks to both of you, both these solutions worked great!

It does seem like the inability to change the color of an existing rectangle with the palette is a bug...