Well, not very funny, but, possibly, useful (Wow, my commas might run out in a minute).
I was musing, as one does, on windowShape and something I read the other day (which I now cannot locate)
about someone wanting to "punch holes" in stack windows using windowShape on the fly.
Initially that seemed a bit bonkers until I wondered about whether it might be possible to import a snapshot
of all or part of a stack windows to use as a mask for a windowShape.
It certainly seems to work.
Import "funny" snapshot
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Import "funny" snapshot
I'm not positive I understand the goal. You can certainly have a group of images (depending on how you want the holes to appear, an animated gif would do), and have the window shape change based on the image used.
For instance, this little time waster (press esc. to kill it).
For instance, this little time waster (press esc. to kill it).

-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Import "funny" snapshot
Well . . .
Imagine a very goofy game where there was a drag-and-drop image, and when an end-user
having dragged the image then dropped it . . . and there were areas designated as where
the end-user could NOT drag the image, and those were desiganated by transparent patches
right through the stack to the underlying whatever (end-user's desktop, photo of end-user's
granny, windows of other apps, etc.).
Those transparent no-go areas changing dependent on where the image were dropped . . .
Imagine a very goofy game where there was a drag-and-drop image, and when an end-user
having dragged the image then dropped it . . . and there were areas designated as where
the end-user could NOT drag the image, and those were desiganated by transparent patches
right through the stack to the underlying whatever (end-user's desktop, photo of end-user's
granny, windows of other apps, etc.).
Those transparent no-go areas changing dependent on where the image were dropped . . .
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Import "funny" snapshot
I must be bonkers.
-

-
- Attachments
-
- Kinky shapes.livecode.zip
- Here's the stack.
- (3.72 KiB) Downloaded 180 times