Figuring out if something is on the current screen, or getting the current screen rect

Monte Goulding monte at appisle.net
Sat Jan 9 21:20:09 EST 2016


> On 10 Jan 2016, at 10:55 am, Dr. Hawkins <dochawk at gmail.com> wrote:
> 
> As I look through screenLoc, screenRect(s), etc., I'm not seeing *any* way
> to figure out which screen an object is on, short of manually comparing
> elements of its rect to the various bits of screensRects.

put the screen of this stack into theScreen
put line theScreen of the screenRects into theStackScreenRect

From my memory of following the repo feed the screen of stack was undocumented until recently when Trevor documented it which probably means it is only documented in LC 8 so not sure what version it was introduced but it stands to reason it may have been introduced when the screenRects was...

Cheers

Monte


More information about the use-livecode mailing list