Figuring out if something is on the current screen, or getting the current screen rect
mwieder at ahsoftware.net
Sun Jan 10 01:26:51 CET 2016
On 01/09/2016 03:55 PM, Dr. Hawkins 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.
> In particular, I want to know if another stack (or group) that I set the
> position of will actually fit onto the current screen, or if I need to move
*should* you need to know this?
I would think that ideally the user should be in control of whether
something goes on one screen or another, and that this ability shouldn't
be taken away from them.
If this really is something you need, then I use the screenrects in more
or less the way you describe to figure out what screen something is on.
And it's "more or less" because I just look at the loc of the object and
compare that with the rect elements of the screenrects.
ahsoftware at gmail.com
More information about the use-livecode