Offscreen stack.

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Offscreen stack.

Post by zaxos » Sun Nov 15, 2015 5:43 pm

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.
Knowledge is meant to be shared.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10127
Joined: Fri Feb 19, 2010 10:17 am

Re: Offscreen stack.

Post by richmond62 » Sun Nov 15, 2015 6:57 pm

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 . . .

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

Re: Offscreen stack.

Post by FourthWorld » Sun Nov 15, 2015 9:12 pm

Send for move?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Offscreen stack.

Post by dunbarx » Sun Nov 15, 2015 9:59 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10127
Joined: Fri Feb 19, 2010 10:17 am

Re: Offscreen stack.

Post by richmond62 » Mon Nov 16, 2015 7:12 pm

NO: I did use 'move': but I was extremely tired last night
when I posted that message.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Offscreen stack.

Post by dunbarx » Mon Nov 16, 2015 8:52 pm

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

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Offscreen stack.

Post by zaxos » Tue Nov 17, 2015 11:48 am

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
Knowledge is meant to be shared.

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

Re: Offscreen stack.

Post by FourthWorld » Tue Nov 17, 2015 12:43 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Offscreen stack.

Post by zaxos » Tue Nov 17, 2015 1:02 pm

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.
Knowledge is meant to be shared.

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

Re: Offscreen stack.

Post by FourthWorld » Tue Nov 17, 2015 1:31 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Offscreen stack.

Post by zaxos » Tue Nov 17, 2015 1:37 pm

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
Knowledge is meant to be shared.

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

Re: Offscreen stack.

Post by FourthWorld » Tue Nov 17, 2015 8:04 pm

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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Offscreen stack.

Post by zaxos » Wed Nov 18, 2015 1:26 pm

Check the video on my post, only when you open MB the stack gets offscreen
Knowledge is meant to be shared.

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

Re: Offscreen stack.

Post by FourthWorld » Wed Nov 18, 2015 4:50 pm

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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Offscreen stack.

Post by zaxos » Thu Nov 19, 2015 12:48 am

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.
Knowledge is meant to be shared.

Post Reply