Annoying Systemwindow Issue with Windowshape

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ThatOneGuy
Posts: 77
Joined: Fri Jan 04, 2013 9:57 am

Annoying Systemwindow Issue with Windowshape

Post by ThatOneGuy » Tue Aug 27, 2013 5:38 am

Changing the windowshape of a stack sets the systemwindow property to false. It should NOT do that!
I have a program that changes windowshape every 100 millisecs. This issue is a serious problem.

I tried using: if the systemwindow of this stack is false then set the systemwindow of this stack to true

This causes the stack to flicker incessantly and is hardly a solution.
I already tried to lock and unlock the screen and lock and unlock messages. Those did nothing.

Is there any way of keeping systemwindow active after changing the shape of the window?

ThatOneGuy
Posts: 77
Joined: Fri Jan 04, 2013 9:57 am

Re: Annoying Systemwindow Issue with Windowshape

Post by ThatOneGuy » Tue Aug 27, 2013 5:54 am

Nevermind. I've figured it out already.

Code: Select all

on focusout
   set the systemwindow of this stack to true
end focusout

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Annoying Systemwindow Issue with Windowshape

Post by FourthWorld » Tue Aug 27, 2013 3:14 pm

Good catch. There are a handful of cases where the LC engine reverts objects to default values for some properties when setting others. With things like the listBehavior with fields it's usually what we want, but I wonder if this one could be altered in the engine to allow the systemWindow to remain as-is when changing the windowShape.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply