Furniture
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Furniture
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?
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
What does "furniture" mean in this context?
Files and folders on the desktop?
Files and folders on the desktop?
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Furniture
Straight from the horse's mouth.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).
Re: Furniture
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
Works here on my Mac, but I do not have anything else but the macOS "Dock" cluttering up my screen
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Furniture
What OS, and what isn't detected exactly?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Furniture
I think what your missing is the "effective" word, as in effective working screenRect.
One paragraph lower than your quote it says
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.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Furniture
Is that a fact?
- -
Either the documentation is "insufficient" or I'm being a bit goofy; or both.
- -
Either the documentation is "insufficient" or I'm being a bit goofy; or both.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Furniture
Not round this neck of the woods.Works here on my Mac
The distance between my Mac Menu bar and my Dock is 959 pixels, but
effective screenRect gives me 1003
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Furniture
Bogs means this:
Code: Select all
put the effective working screenrect...
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Furniture
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).
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).
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Furniture
No joy over here on a Mac:
- - -
- - -
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
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Furniture
What's missing?richmond62 wrote: ↑Sun Jul 15, 2018 11:24 pmNo 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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Furniture
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.
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Furniture
Unless you're using multiple monitors that should be what we expect, no?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Furniture
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.
1. Take the Dock on my Macintosh into account.
2. Take XFCE panels on various Linux distros using XFCE.