Clipping - how to ?

Dave Cragg dcragg at lacscentre.co.uk
Tue Nov 25 06:05:57 CST 2003


At 10:40 am +0100 25/11/03, jbv wrote:
>Hi list,
>
>Is there a way to do some clipping
>(define a limited, viewabe window
>for displaying elements), like in
>javascript ?
>
>For rectangular shapes, I would group
>elements and change the rect of the group.
>But what about non-rectangular shapes ?

You could create a polygon with a "cutout" portion. For example, a 
polygon with the following points will have a diamond-shaped 
see-through center.

100,100
200,100
200,150
150,200
200,250
250,200
200,150
200,100
300,100
300,300
100,300
100,100

Set the line size to 0 and the filled to true, and you can drag it 
around and see objects underneath it.

But objects underneath the "cutout" portion won't get mouse events 
which could be a limitation.

Cheers
Dave


More information about the use-livecode mailing list