Page 1 of 1

screenheight

PostPosted: Fri May 25, 2018 5:58 pm
by plantenkennis
I use the function ScreenHeight() in my app. But when I calculate with this there are some strange things.
-When the dock is at the bottom my window and controls are placed correct
Image
-When the dock is on the right side the window is shown full height, but the controls are not at the top.
Image
How can I detect whether the dock is at the bottom or on the side of the screen?

Re: screenheight

PostPosted: Tue May 29, 2018 9:31 pm
by mastintin
Yes is posible ...

I'm going to implement this functions :
SCREENVISIBLEWIDTH -> width screen ( no dock include if possition is left .or. right )
SCREENVISIBLEHEIGHT -> Height position ( no include statusbar and dock , if is bottom )
STATUSBARHEIGHT -> Height statusbar
GETDOCKPOSITION -> Return "left", "right" o "bottom" text
GETDOCKSIZE -> size dock
ISDOCKHIDDEN -> bold true for hidden ,false for visible .

Saludos.