If I call these functions for my maximized mainwindow I will get the values 1928 and 1208. Seems that’s not a problem, but my screen resolution is 1920x1200…
Further I notice that when the window is not maximized the method getWindowHeight() returns values that are too high. Did anyone else also notice this?
michel:
Seems that’s not a problem, but my screen resolution is 1920x1200…
That’s what they told you, but did you do a count yourself?
Back to serious: which os & servoy version are you using?
That’s true, you never know who to trust, maybe I will be counting dots this weekend…
I’m using windows XP, servoy 5.1.
maybe the window is a bit bigger than the screen ? we just take the size from java window (I guess this is in smart client …)
If you haven’t changed any of the advanced Appearance settings in the Display control panel, window bordering is 4px on an XP machine (running either a Luna or Classic theme). These borders are being counted as part of the window, giving you the offset of 8px from what you might expect.
Note that when Aero is used in Vista and Win7, the default window bordering is 8px. So you can probably expect a 16px discrepancy there.