No backgroundcolor

J. Landman Gay jacque at hyperactivesw.com
Mon Nov 28 16:01:51 EST 2005


R. Hillen wrote:
> Hello list,
> 
> I wanted to make a green rect with a red edge, so I wrote
> 
>       create invisible graphic
>       set the style of it to rectangle
>       set the rect of it to 20,20,50,50
>       set the foregroundcolor of it to 255,0,0 --RGB_Color
>       set the backgroundcolor of it to 0,255,0 --RGB_Color
>       set the linesize of it to 2
>       show it
> 
> I got a white rect with a red edge. Why?

I'm not sure, because the "foregroundcolor" controls the text color, not 
the border. If this wasn't a typo, then set the "bordercolor" instead.

Also, do the opaque thing like others have suggested.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list