the iconic of a stack - also import snapshot
Lars Brehmer
larsbrehmer at mac.com
Tue Feb 19 16:47:28 EST 2013
I solved my self-induced problem, and it was indeed rather idiotic of me, as I suspected.
The iconic didn't work because in the stack inspector the decorations were set to empty. I use a custom stack shape without the Mac or Windows decorations, and I didn't realize that even when you don't use them. the decorations can't be empty. I can't remember exactly, but I think that this was different in Rev 2.8, which is why I was confused.
One last thing that is driving me crazy is that "import snapshot" never works for me in Windows. It works in the livecode IDE, but in standalones, the snapshot is always of the desktop/wallpaper, not of the stack.
put 234,83,500,166 into zRect
put the windowId of stack "mainStack" into tWindow
import snapshot from rect zRect of window tWindow
In the IDE this works fine. In a standalone the image is always of the wallpaper behind the stack. I have found this problem in the forums, read how people say it works just fine in Windows and followed every tip and still it never has worked for me. Always the wallpaper. Please tell me this isn't because of the decorations?
Cheers,
Lars
More information about the use-livecode
mailing list