Page 1 of 2

Offscreen stack.

Posted: Sun Nov 15, 2015 5:43 pm
by zaxos
Hello, any idia why i can't get a stack off the screen since version 6.7.8 of LC? is there a setting to change that? I made a small video to demonstrate:
https://www.youtube.com/watch?v=5GgKFN9 ... tu.be&hd=1
Thank you.
EDIT: Happens only with versions 6.7.8 and later, havent tested any 7.0 tho but if i had to guess LC 7.0 must be working as expected and LC 7.1.1 should have the same issue, i dont think it is a bug, maybe they changed it so that ppl dont lose their windows offscreen, but seems like that creates other issues... Unless there is a commad to disable it that i dont know of.

Re: Offscreen stack.

Posted: Sun Nov 15, 2015 6:57 pm
by richmond62
I just tried that with a stack in 7.1 and found although my
code went something like this:

on mouseUp
send stack "STAKK" to -1000,-1000
wait 5 ticks
send stack "STAKK" to 500,500
end mouseUp

part of the stack was visible in the top, left-hand corner of
the screen.

When I changed the second line to:

send stack "STAKK" to 4000,4000

part of the stack was still visible in the bottom, right-hand corner
of the screen.

Probably time to file a bug report . . .

Re: Offscreen stack.

Posted: Sun Nov 15, 2015 9:12 pm
by FourthWorld
Send for move?

Re: Offscreen stack.

Posted: Sun Nov 15, 2015 9:59 pm
by dunbarx
Richmond.

You cannot "send" a stack, you have to "move" it. You compiled that without complaint?

Craig

EDIT>

Just saw Richard's post. What he said.

Re: Offscreen stack.

Posted: Mon Nov 16, 2015 7:12 pm
by richmond62
NO: I did use 'move': but I was extremely tired last night
when I posted that message.

Re: Offscreen stack.

Posted: Mon Nov 16, 2015 8:52 pm
by dunbarx
Richmond.
I was extremely tired last night
I think an enhancement request should be made to include an emoticon illustrating this condition. I need it regularly. Anyone have any ideas how it should look?

Craig

Re: Offscreen stack.

Posted: Tue Nov 17, 2015 11:48 am
by zaxos
https://www.google.gr/m?q=tired+emotion ... yJKPAQhMLM:
Guess it would be overused thats wht they dont have it :!:
By the way, feel free to file a bug report since i cant

Re: Offscreen stack.

Posted: Tue Nov 17, 2015 12:43 pm
by FourthWorld
Richmond, are you seeing his with all stack windows or only custom-styled windows?

I don't know offhand how this works on Windows, but on Linux the Gnome window manager prevents custom windows from ever moving outside the display bounds, presumably to protect the user because in a custom window the window manager can't know where the drag controls might be.

Re: Offscreen stack.

Posted: Tue Nov 17, 2015 1:02 pm
by zaxos
FourthWorld, this happens with normal windows (all decorations) and also with custom shaped windows, the difference is (as richmond sayd) that with unshaped windows the borders of the window get offscreen, the rest of the stack dosent. Well this dosent happend with shaped windows as they dont have any borders.
Also as i sayd to my first post, this is not a problem with windows since the problem only exists with LC versions 6.7.8 and later regardless of the operating system.

Re: Offscreen stack.

Posted: Tue Nov 17, 2015 1:31 pm
by FourthWorld
Given that many of us regularly use offscreen windows, clearly there's something else at play here beyond the engine. Exactly what that is I can't say quite yet, but look forward to discovering as this mystery unfolds.

Re: Offscreen stack.

Posted: Tue Nov 17, 2015 1:37 pm
by zaxos
Well we have all the facts, this only occurs with windows platforms and with LC 6.7.8++/LC 7.1.1++/LC8+, do your tests and see if that happens to you too

Re: Offscreen stack.

Posted: Tue Nov 17, 2015 8:04 pm
by FourthWorld
I just ran this recipe in v7.1.1 in Windows 8.1:

1: created a new stack named "aaa"
2. In the Message Box, ran: set the loc of stack "aaa" to -1000,-1000
RESULT: the stack was no longer visible on screen
3. In the MB, ran: put the loc of stack "aaa"
RESULT: -1000,-1000
4. In the MB, ran: set the loc of stack "aaa" to the screenloc
RESULT: the stack became visible in the center of the screen
5. In the MB, ran: move stack "aaa" to -1000,-1000
RESULT: the stack moved at what appeared to be the current moveSpeed up and to the left until it was entirely out of view.

What happens when you run that recipe?

Re: Offscreen stack.

Posted: Wed Nov 18, 2015 1:26 pm
by zaxos
Check the video on my post, only when you open MB the stack gets offscreen

Re: Offscreen stack.

Posted: Wed Nov 18, 2015 4:50 pm
by FourthWorld
Thanks. Videos can sometimes be useful, but a concise written recipe is easier to follow. Here's mine from yet another test today:

1. Launch LC
2. Create a new stack named "aaa"
3. Put a button in the stack with this script:

Code: Select all

on mouseUp
      move stack "aaa" to -1000,-1000
      move stack "aaa" to the screenloc
end mouseUp
4. Click the button

RESULT: the Message Box was never opened during the session yet the stack moves as expected, first up and to the left until it's entirely off-screen, and then back to the center of the screen.

What happens when you run that recipe?

I have no reason to mislead you when I wrote that many apps in our community are dependent on being able to reliably place stacks offscreen. Sure, it's always possible that a bug can be introduced in a specific version of LC, but when a bug appears to be evident across multiple versions and relates to a feature very commonly relied on, it's probably good to check the recipe to determine if the problem is in LC or the script being used to test it.

The video showed a window with a custom shape, but the written description here says that the behavior is evident on standard window styles as well. Perhaps if you could post your code we'd be in a better position to understand what you're seeing.

Also, you wrote:
havent tested any 7.0 tho but if i had to guess LC 7.0 must be working as expected and LC 7.1.1 should have the same issue
Version 7.0 and later contains many changes not found in v6.x. It would be useful to try your recipe in the latest Stable version, currently 7.1.1:
http://downloads.livecode.com/livecode/

Re: Offscreen stack.

Posted: Thu Nov 19, 2015 12:48 am
by zaxos
Try'd your recipe FourthWorld, here are the results:
https://www.youtube.com/watch?v=X1w1o9pRka8
Used LC 7.1.1 RC 1
Try'd both move command and set the loc, had the same results with both and ONLY with LC 7.1.1 . LC 6.7.7 worked as expected.