WindowShape

Scott Rossi scott at tactilemedia.com
Fri Sep 12 15:15:52 EDT 2014


Hi Pete:

If you were to position the snapshot image at the topLeft of your stack,
would the controls you can't see fall within the rect of the image?  Am
asking because it doesn't matter where the image resides on a card, the
mask is always drawn from the topLeft of the stack.  So the controls would
have to be positioned within the rect: 0,0,width of your image, height of
your image.

(Also, your image needs to be opaque or have some opacity to be seen, but
I'm sure you know this.)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 9/12/14 12:02 PM, "Peter Haworth" <pete at lcsql.com> wrote:

>Using the windowshape property of a stack for the first time and things
>aren't working quite as expected.
>
>I created a rounded rectangle graphic and then exported a snapshot of it
>to
>an image.  When the stack is opened, I set the windowshape to the id of
>the
>image.
>
>I see the outline of the card but none of the controls on it are visible.
> I suspect this is something to do with the "1-bit transparency mask" and
>"full alpha mask" described in the windowshape dictionary entry.
>
>The only masks I know about are the Lone Ranger's and the ones you see on
>Halloween so I'd be grateful if some kind graphics person could enlighten
>me as to what I need to do to get this working :-)
>
>Pete
>lcSQL Software <http://www.lcsql.com>
>Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list