Re: screenRect and screenLoc weirdness

2019-01-15 Thread Knapp Martin via use-livecode
Hi Monte, This happens for me in a fresh instance in the IDE (LC 9.0.2 on Mac). Again, I have a 2nd larger monitor with the bottoms aligned, placing the top of the 2nd monitor higher than the main monitor. Then just type into the message box "Answer hello" and the dialog positions itself almost

Re: screenRect and screenLoc weirdness

2019-01-15 Thread Paul Dupuis via use-livecode
On 1/14/2019 7:58 PM, Knapp Martin via use-livecode wrote: set the loc of stack "Ask Dialog" to screenLoc() ask "What color is you favorite?” Does that work for you Paul - it doesn’t for me. I’m having to do this: send CenterAnswerOnScreen to me in 1 tick answer “Blah blah blah” on CenterAnswe

Re: screenRect and screenLoc weirdness

2019-01-14 Thread Monte Goulding via use-livecode
Hi Marty I’m just wondering if you are using the standard IDE ask and answer dialog or a custom one? If you are working on a very old stack then MetaCard used to copy the ask and answer dialog into the stackFile as a substack. You should be able to see them in the project browser under your mai

Re: screenRect and screenLoc weirdness

2019-01-14 Thread Knapp Martin via use-livecode
> set the loc of stack "Ask Dialog" to screenLoc() > ask "What color is you favorite?” Does that work for you Paul - it doesn’t for me. I’m having to do this: send CenterAnswerOnScreen to me in 1 tick answer “Blah blah blah” on CenterAnswerOnScreen set the loc of stack "answer dialog" to the

Re: screenRect and screenLoc weirdness

2019-01-14 Thread Paul Dupuis via use-livecode
On 1/10/2019 11:02 PM, Knapp Martin via use-livecode wrote: OK, I’m making progress here. But I’m finding that ask and answer dialogs are opening off-screen. How are their positions determined? Marty See https://quality.livecode.com/show_bug.cgi?id=4309 A very old enhancement request that w

Re: screensChanged ? (was Re: screenRect and screenLoc weirdness)

2019-01-14 Thread Ben Rubinstein via use-livecode
Aha! Thanks Paul, that's just what I needed. I looked through all the 'changed' messages in the dictionary but didn't spot that one. Ben On 14/01/2019 13:38, Paul Dupuis via use-livecode wrote: This is the 'desktopChanged' message -- see Dictionary On 1/14/2019 8:22 AM, Ben Rubinstein via use

Re: screensChanged ? (was Re: screenRect and screenLoc weirdness)

2019-01-14 Thread Paul Dupuis via use-livecode
This is the 'desktopChanged' message -- see Dictionary On 1/14/2019 8:22 AM, Ben Rubinstein via use-livecode wrote: Related to this: is there any possibility of getting a "screensChanged" message? I work on multi-monitor setups all the time, and have not been bothered by the issue with screenRe

screensChanged ? (was Re: screenRect and screenLoc weirdness)

2019-01-14 Thread Ben Rubinstein via use-livecode
Related to this: is there any possibility of getting a "screensChanged" message? I work on multi-monitor setups all the time, and have not been bothered by the issue with screenRects because they've always told the truth relative to each other. However, the problem is that my set-up changes mu

Re: screenRect and screenLoc weirdness

2019-01-11 Thread Bob Sneidar via use-livecode
Thanks Monte! This will enhance the procedures I have in place! Bob S > On Jan 10, 2019, at 16:39 , Monte Goulding via use-livecode > wrote: > > — set the topLeft of a stack to the topLeft of its screen below the menubar: > set the topLeft of stack “Foo” to item 1 to 2 of line (the screen of

Re: screenRect and screenLoc weirdness

2019-01-11 Thread Bob Sneidar via use-livecode
I was probably the first person to mention it. I get around it by setting the position of my stacks when opened or resumed to be within the bounds of the monitor. Actually, this will happen when switching from the single built-in display of a laptop to a dual display with the laptop closed (buil

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
OK, I’m making progress here. But I’m finding that ask and answer dialogs are opening off-screen. How are their positions determined? Marty > On Jan 10, 2019, at 6:44 PM, Brian Milby via use-livecode > wrote: > > I do see one issue with the “effective” dictionary entry though. Normally > yo

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Brian Milby via use-livecode
I do see one issue with the “effective” dictionary entry though.  Normally you are not able to set effective properties, but for stack rect properties it is permitted. topLeft and topRight also need a clarifying statement to indicate that multiple monitors could cause the main screen topLeft to

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Brian Milby via use-livecode
It is part of the “rectangle” property.  The individual pieces are not enumerated. Thanks, Brian On Jan 10, 2019, 8:08 PM -0600, Paul Hibbert via use-livecode , wrote: > Interesting! - it does appear to work, but that combination is not in the > dictionary under “topLeft” as far as I can see, a

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Paul Hibbert via use-livecode
Interesting! - it does appear to work, but that combination is not in the dictionary under “topLeft” as far as I can see, and “topLeft” is missing from the list of properties shown under the “effective” description. Paul > On Jan 10, 2019, at 17:03, Brian Milby via use-livecode > wrote: > >

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Monte Goulding via use-livecode
Good catch Brian! > On 11 Jan 2019, at 12:03 pm, Brian Milby via use-livecode > wrote: > > You may want to use the “effective topLeft” though. Otherwise the title bar > of the window could be off screen. ___ use-livecode mailing list use-livecode@li

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Brian Milby via use-livecode
You may want to use the “effective topLeft” though. Otherwise the title bar of the window could be off screen. Thanks, Brian On Jan 10, 2019, 6:42 PM -0600, Knapp Martin via use-livecode , wrote: > I will give those a spin - thanks Monte. > > Marty > > On Jan 10, 2019, at 4:39 PM, Monte Goulding

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Brian Milby via use-livecode
put item 1 of the working screenrect into tLeft put item 2 of the working screenrect into tTop set the top of stack “x” to tTop set the left of stack “x” to tLeft I’m sure there are more efficient ways, but that is the idea.  You just need to calculate the offset from the origin manually.  Of co

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
I will give those a spin - thanks Monte. Marty > On Jan 10, 2019, at 4:39 PM, Monte Goulding via use-livecode > wrote: > > > >> On 11 Jan 2019, at 11:16 am, Knapp Martin via use-livecode >> wrote: >> >> I was merely using that as an example. In my app I too place a toolbar in >> the topLe

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Monte Goulding via use-livecode
> On 11 Jan 2019, at 11:16 am, Knapp Martin via use-livecode > wrote: > > I was merely using that as an example. In my app I too place a toolbar in the > topLeft corner of the screen by setting the topLeft of the stack to 0,0. On a > single screen setup it works fine. But I've just discovere

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
I was merely using that as an example. In my app I too place a toolbar in the topLeft corner of the screen by setting the topLeft of the stack to 0,0. On a single screen setup it works fine. But I've just discovered that on a multi-monitor setup as I've described, the toolbar isn’t even visible

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Monte Goulding via use-livecode
> On 11 Jan 2019, at 10:41 am, Knapp Martin via use-livecode > wrote: > > When I open Livecode on my dual monitor setup where the top of the 2nd > monitor is higher than my main monitor, both the Livecode toolbar and the > script editor open partially off screen with their title bars inacces

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
When I open Livecode on my dual monitor setup where the top of the 2nd monitor is higher than my main monitor, both the Livecode toolbar and the script editor open partially off screen with their title bars inaccessible. I understand that I can type something into the message box to relocate the

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Paul Dupuis via use-livecode
On 1/10/2019 5:40 PM, Monte Goulding via use-livecode wrote: I think it would be convenient to have a screenLocs variant of screenLoc so you can: Monte, Funny you should say that. See hibernated enhancement request https://quality.livecode.com/show_bug.cgi?id=21337 Paul Dupuis Researchware

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Monte Goulding via use-livecode
Tom the issue here is that it is arguable that this is a bug. We have lots of things to work on which we are sure about ;-) To clarify what I mean. Which set of results is more correct? Main screen rect: 0,280,1280,1080 2nd screen rect: 1280,0,3200,1080 Main screen rect: 0,0,1280,800 2nd screen

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Tom Glod via use-livecode
i don't like how long a bug like this has been in the queue without being fixed. I'm surprised it hasn't affected more people but i guess maybe thats why its lower in the queue. Sorry, but I don't know of any remedies for this. On Thu, Jan 10, 2019 at 5:24 PM Knapp Martin via use-livecode < u

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
Wow, that’s been around for a while. Anybody have a work-around seeing as how this is unlikely to be fixed? Seems like setting the loc of a window to the center of the screen would be an often used feature. I never noticed it because I don’t have a multi-monitor setup. Marty > On Jan 10, 2019,

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Tom Glod via use-livecode
Hi Marty, I saw this the other day...this is probably the bug you are referencing. https://quality.livecode.com/show_bug.cgi?id=19419 On Thu, Jan 10, 2019 at 3:25 PM Knapp Martin via use-livecode < use-livecode@lists.runrev.com> wrote: > So I just had a customer complain that windows were openin

screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
So I just had a customer complain that windows were opening in odd locations with his multi-monitor setup: a MacBookPro with a Thunderbolt display. He has his displays arranged so that the bottoms were aligned with the 2nd display to the left of the MacBook. So I hooked my laptop to my TV and d