No background in painted rect

Ken Ray kray at sonsothunder.com
Thu Dec 1 10:12:17 EST 2005


On 12/1/05 3:47 AM, "mail at richard-hillen.de" <mail at richard-hillen.de> wrote:

> Hello list,
> 
> now I wanted to paint a rect filled with Color.

As Xavier mentioned, you need to set the opaque to true, but I'm curious -
is there a reason you need a *painted* rect? It would be a lot easier to use
the graphic objects in Rev:

  put "200,50,100" into RGB_Color
  create graphic  -- defaults to a rectangle
  put it into tGrcDesc
  set the opaque of tGrcDesc to true
  set the backgroundColor of tGrcDesc to RGB_Color
  set the borderColor of tGrcDesc to RGB_Color
  choose browse tool

HTH,

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