No background in painted rect

R. Hillen mail at richard-hillen.de
Thu Dec 1 12:43:47 EST 2005


Hello Xavier, hello Ken,

thank you for your help.

> Message: 3
> Date: Thu, 1 Dec 2005 10:55:30 +0100
> From: xavier.bury at clearstream.com
> Subject: Re: No background in painted rect
>
> Hi Richard
>
> you need to set the opaque of the polygon to true...
>
> To find more about paint, there's always the rev documentation...  
> Using
> the search instead of the
> filter should help find more... Alas painting in Rev is not that  
> good...
> It's far easier and better to
> import ready made art into the "image" controls...
>
>

I looked everywhere in the documentation, but it was not very  
helpfull. I know, all is written there, but to find it and how it is  
connected together, is another thing. But I found a little stack and  
learned from it, that I had to "set the filled to true" and to do  
that _before_ choosing the paint tool. (Yesterday, trying graphic  
pbjects, I learned from this list to set the opaque to true.)

I want to show soundlevels in an area,  200 times 200 datapoints as  
litte scaled coloured rects, so I have to paint it. I also tried to  
use graphic objects. While the painting of the 40000 datapoints take  
about 8 Minutes, using graphic objects takes about twice as long. The  
main time is used by dragging the rects or painting the rectangles.

And both is a very long time to show some data.

Richard.



> Message: 13
> Date: Thu, 01 Dec 2005 09:12:17 -0600
> From: Ken Ray <kray at sonsothunder.com>
> Subject: Re: No background in painted rect
>
>> 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