Formatting columns across a list item

Cubist at Cubist at
Fri Feb 25 21:58:35 EST 2005

sez Karen at
>I'm trying to use Revolution to build a program to track stock tickers.
> The
>wrinkle to this is that I'd like the movement in a stock to be red or green
>according to whether it was negative or positive.
>I've successfully built a static version that allows the user to enter
>up to
>10 items, and as the fields are all labels I can format them as necessary.
>This is fine as far as it goes, but is a problem if the user wants to track
>more than 10 stocks.
>My next thought was to use a scrollable list, which would allow as many
>stocks as the user likes.  However, with the standard Revolution lists it
>appears that they can only have a single text colour across all the columns
>for a given item.  I think I must be missing something here, because I'm
>presuming that there is a way to do this in Revolution?
   Some possibilities which come to mind, that you may or may not have 
already tried:

  set the textColor of word 41 of fld "ticker tracker" to "green"
  set the textColor of word 3 of line 4 of fld "ticker tracker" to "green"
  set the textColor of char 21 to 33 of word 14 of fld "ticker tracker" to 
  set the textColor of char 145 to 156 of fld "ticker tracker" to "green"

   Hope this helps...

More information about the use-livecode mailing list