on 27/9/00 12:35 PM, kim maboy at [EMAIL PROTECTED] wrote:
> Hi I am not sure if this is possible, but I would like
> to specify the color of a specific character in a
> field. So far I have tried this with no success. This
> is what I tried:
>
> set the color of char 15 of field "fieldname" =
> color.(#rgb, 255, 0, 0)
Hi,
I've been working with Director since it was Videoworks and it still takes
me several attempts to get the syntax right every time I want to set the
colour or fontstyle of a line / word / char of a field or text member. Its
bloody ridiculous!
Anyway, sorry for the rant. This syntax will work for TEXT members (but not
FIELD members)
member("atextmember").char[2].color = color(#rgb, 255, 0, 0)
This will work with FIELDS (but not TEXT members)
set the forecolor of char 2 of field("afield") = 32
(note - the forecolor and backColor is "the decimal equivalent of the 24-bit
hexadecimal value", which is slightly different from the RGB or PaletteIndex
of a color or bgColor)
... continuing the rant:
The lingo help player says the forecolor is a cast member property which
"sets the foreground color of a FIELD cast member", and gives as an
example...
member("myDescription").line[2].word[3].forecolor = 27
...which will NOT work on FIELDS.
Another example of the mess of lingo and text:
[This is cut from the lingo help system]
"This statement sets the fontStyle member property for the FIELD
cast member Poem to bold italic:
member("Poem").fontStyle = [#bold, #italic]
This is completely wrong. It will work for TEXT members, but to continue the
fine tradition of making formatting text with lingo as confusing as
possible, fields expect a string specifying the fontstyle rather than a list
of symbols -- eg
member("afield").fontstyle = "bold"
member("aTextMember").fontstyle = [#bold]
--
Luke Wigley
Multimedia Hack
Mecca Medialight Pty Ltd
Mecca Medialight: Medialight Sound Studio:
111 Moor Street 1 Bakehouse Lane
Fitzroy, Vic. 3065 North Fitzroy, Vic. 3068
Tel +613 9416 2033 Tel +613 9416 2033
Fax +613 9416 2055 Fax +613 9416 2055
www.medialight.com.au
__________________________________________________________________________
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]