screenRect and screenLoc weirdness

Knapp Martin martyknappster at gmail.com
Mon Jan 14 19:58:30 EST 2019


> 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 screenLoc
end CenterAnswerOnScreen

I have a couple of customers with small-screened laptops who use large secondary monitors aligned at the bottom. Thus the top of the secondary monitor is quite a bit above the main laptop monitor. Ask and Answer dialogs are so far off you can only see about the bottom 1/8 of an inch of the window and are thus unusable.

Marty

> On Jan 14, 2019, at 2:25 PM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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 would be a nice addition. SuperCard has a 'at' syntax, so you could say:
> 
> Ask "What color is your favorite?" at screenLoc()
> 
> Now you have to do something like
> 
> set the loc of stack "Ask Dialog" to screenLoc()
> ask "What color is you favorite?"
> 
> The actual stack names are "Ask Dialog" and "Answer Dialog" whether invoked from the IDE or a Standalone.
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list