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 > <[email protected]> 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 stack > “Foo”) of the effective working screenRects > > — set the topLeft of a stack to the topLeft of the main screen below the > menubar > set the topLeft of stack “Foo” to item 1 to 2 of the effective working > screenRect > > — set the loc of a stack to the center of its screen > local tLoc, tRect > put line (the screen of stack “Foo”) of the screenRects into tRect > put item 1 of tRect + (item 3 of tRect - item 1 of tRect) div 2, \ > item 2 of tRect + (item 4 of tRect - item 2 of tRect) div 2 into tLoc > set the loc of stack “Foo” to tLoc > > — set the loc of a stack to the center of the main screen > set the loc of stack “Foo” to the screenLoc > > Hope these help! FWIW these should remain correct even if the general > consensus is that the desktop space should have an 0,0 origin for the main > screen. > > Cheers > > Monte _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
