Hi everybody,
There are some games which changes screen resolution on startup. I've made a script for my stack -
on desktopChanged
set the iconic of me to false
end desktopChanged
But when I start a game, it changes the screen resolution in 640X480 but my stack wont restore if minimized.
I've alse made a script for my stack -
on escapeKey
set the iconic of me to false
end escapeKey
But it also not works when I press escape key.
Pls, solve me.
Iconic Problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi alemrantareq,
It looks like you've put your script in the wrong place. If you put your script in a card script, "me" doesn't refer to the stack but to the card and setting the iconic of a card causes an execution error.
Please, make sure that you have your script at stack level. If your stack is not always the topstack, you might want to insert your script into the backscripts to make sure that the desktopChanged message is trapped.
While your stack is iconified, it isn't focused and can't trap the escapeKey message.
Best regards,
Mark
It looks like you've put your script in the wrong place. If you put your script in a card script, "me" doesn't refer to the stack but to the card and setting the iconic of a card causes an execution error.
Please, make sure that you have your script at stack level. If your stack is not always the topstack, you might want to insert your script into the backscripts to make sure that the desktopChanged message is trapped.
While your stack is iconified, it isn't focused and can't trap the escapeKey message.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode