No backgroundcolor

Ken Ray kray at sonsothunder.com
Mon Nov 28 15:20:52 EST 2005


On 11/28/05 1:50 PM, "R. Hillen" <mail at richard-hillen.de> 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?

Because the graphic's "opaque" property was false. Set it to true and you'll
see the green fill.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list