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!
How to shade a line of text?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: How to shade a line of text?
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
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?
You may want the graphic behind your (transparent) field.
Best wishes,
Curry Kenworthy
LiveCode Development, Training & Consulting
http://livecodeconsulting.com/
WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/
Curry Kenworthy
LiveCode Development, Training & Consulting
http://livecodeconsulting.com/
WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/
-
- Posts: 235
- Joined: Thu Jul 01, 2010 11:50 am
Re: How to shade a line of text?
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...
It does seem like the inability to change the color of an existing rectangle with the palette is a bug...