About WindowShape

Scott Rossi scott at tactilemedia.com
Mon Jun 2 22:05:01 EDT 2003


Recently, Tuviah M Snyder wrote:

> 1) When setting the windowshape to an image, have it use the resized
> version of the image if the image is resized
> 2) Possibly allow the user to set the windowshape to an id of a graphic,
> or a list of points

Hi Tuviah.  Your second option sounds great.  The first seems a little
limited because scaling anything but a rectilinear image will result in
jagged edges and thus a jagged looking window.

Here are two alternate suggestions:

1) There should be two properties: windowShape and windowMask.  The former
should rely on vector data (polygon points) and the latter should rely on
bitmap images (PNG).  Ideally the windowMask would support 8 bit
transparency and serve as the alpha data for the window region.  But this
doesn't allow for easy resizing of the mask.

2) The windowShape property should be enhanced to allow for multiple objects
to serve as the window definition.  Then you could create a window with
rounded corners and change the windowShape dynamically at runtime by
repositioning the images as needed.

Other thoughts?

Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: scott at tactilemedia.com
Web: www.tactilemedia.com




More information about the use-livecode mailing list