Page 2 of 2

Re: Table Field

Posted: Mon Mar 30, 2020 11:48 am
by bogs
Not sure I get the problem then, they look individually colored to me :?:

Re: Table Field

Posted: Mon Mar 30, 2020 11:53 am
by richmond62
bogs wrote: Mon Mar 30, 2020 11:48 am Not sure I get the problem then, they look individually colored to me :?:
Ah, but the idea of my script was JUST to colorise item 1 of row 1.

Re: Table Field

Posted: Mon Mar 30, 2020 12:01 pm
by bogs
And... ? If you can color any other cell individually, then you can color any specific cell individually, I still don't get the problem.

Re: Table Field

Posted: Mon Mar 30, 2020 12:10 pm
by richmond62
Well . . .

Code: Select all

on mouseUp
   put empty into fld "tf"
   set the itemDelimiter to TAB
   ------
   set the backGroundColor of item 1 of line 1 of fld "tf" to red
   put "be" into item 2 of line 2 of fld "tf"
   put "completely" into item 3 of line 3 of fld "tf"
   put "bonkers" into item 4 of line 4 of fld "tf"
   put "!!!!!!!!!!" into item 5 of line 5 of fld "tf"
end mouseUp
I wrote set the backGroundColor of item 1 of line 1 of fld "tf" to red so why did the script set ALL of the
items' backGroundColor to red?

Re: Table Field

Posted: Mon Mar 30, 2020 6:38 pm
by jacque
BackgroundColor needs a character reference.

Code: Select all

set the backGroundColor of char 1 to -1 of item 1 of line 1 of fld "tf" to red

Re: Table Field

Posted: Mon Mar 30, 2020 10:19 pm
by richmond62
BackgroundColor needs a character reference.
Thanks. :)