Page 1 of 2
Furniture
Posted: Sun Jul 15, 2018 12:54 pm
by richmond62
working screenRect does NOT detect screen furniture adequately.
This is a pox because one can have no idea what sort of
screen furniture an end user has cluttering up the screen.
I wonder if one can "hand-roll" a routine to detect screen furniture?
Re: Furniture
Posted: Sun Jul 15, 2018 1:26 pm
by Klaus
What does "furniture" mean in this context?
Files and folders on the desktop?
Re: Furniture
Posted: Sun Jul 15, 2018 2:47 pm
by richmond62
Adding the working adjective to either form returns the virtual co-ordinates of each screen's working-area. The working-area of a screen is defined to be the area not covered by OS furniture (such as the task bar on Windows, and the Dock and Menubar on Mac OS X).
Straight from the horse's mouth.
Re: Furniture
Posted: Sun Jul 15, 2018 2:57 pm
by Klaus
Aha, thank you, I had no idea.
Works here on my Mac, but I do not have anything else but the macOS "Dock" cluttering up my screen

Re: Furniture
Posted: Sun Jul 15, 2018 4:29 pm
by jacque
What OS, and what isn't detected exactly?
Re: Furniture
Posted: Sun Jul 15, 2018 7:11 pm
by bogs
I think what your missing is the "effective" word, as in effective working screenRect.
One paragraph lower than your quote it says
Adding the effective adjective to either form returns the area of the screen the application has to itself.
Re: Furniture
Posted: Sun Jul 15, 2018 8:39 pm
by richmond62
Is that a fact?
-
-
Either the documentation is "insufficient" or I'm being a bit goofy; or both.

Re: Furniture
Posted: Sun Jul 15, 2018 8:48 pm
by richmond62
Works here on my Mac
Not round this neck of the woods.
The distance between my
Mac Menu bar and my
Dock is
959 pixels, but
effective screenRect gives me
1003
Re: Furniture
Posted: Sun Jul 15, 2018 8:50 pm
by jacque
Bogs means this:
Code: Select all
put the effective working screenrect...
Re: Furniture
Posted: Sun Jul 15, 2018 9:18 pm
by bogs
Erm, yes, quite that Jacque
In fact, I used that very code when creating the visual layout for this dialog, then scaled everything so that the pictures would show fairly correctly (the application size would look like that on screen for the size given).
Re: Furniture
Posted: Sun Jul 15, 2018 11:24 pm
by richmond62
No joy over here on a Mac:
-

- srect.png (20.93 KiB) Viewed 8242 times
-
-
Code: Select all
on mouseUp
put "screenRect" && the screenRect into line 1 of fld "scl"
put "working SR" && the working screenRect into line 2 of fld "scl"
put "effective working SR" && the effective working screenRect into line 3 of fld "scl"
end mouseUp
Re: Furniture
Posted: Sun Jul 15, 2018 11:27 pm
by FourthWorld
richmond62 wrote: ↑Sun Jul 15, 2018 11:24 pm
No joy over here on a Mac:
-
srect.png
-
rect all exam.livecode.zip
-
Code: Select all
on mouseUp
put "screenRect" && the screenRect into line 1 of fld "scl"
put "working SR" && the working screenRect into line 2 of fld "scl"
put "effective working SR" && the effective working screenRect into line 3 of fld "scl"
end mouseUp
What's missing?
Re: Furniture
Posted: Mon Jul 16, 2018 3:51 am
by bogs
I don't think anythings 'missing' per se, I think he is saying that the working screenRect and effective working screenRect are reporting the same dimensions.
Re: Furniture
Posted: Mon Jul 16, 2018 8:29 am
by FourthWorld
bogs wrote: ↑Mon Jul 16, 2018 3:51 am
I don't think anythings 'missing' per se, I think he is saying that the working screenRect and effective working screenRect are reporting the same dimensions.
Unless you're using multiple monitors that should be what we expect, no?
Re: Furniture
Posted: Mon Jul 16, 2018 10:01 am
by richmond62
The fact is that I can get no variant of screenRect to either:
1. Take the Dock on my Macintosh into account.
2. Take XFCE panels on various Linux distros using XFCE.