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

Bob Sneidar bobsneidar at iotecdigital.com
Mon Jan 11 19:20:25 EST 2016


works in 6.7.6

> On Jan 9, 2016, at 18:20 , Monte Goulding <monte at appisle.net> wrote:
> 
> 
>> 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
> _______________________________________________
> 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