Re: Setting proper window size with NEWT
Posted by
zeeawk on
Aug 11, 2012; 5:26pm
URL: https://forum.jogamp.org/Setting-proper-window-size-with-NEWT-tp4025780p4025783.html
gouessej wrote
Why not using setTopLevelSize()?
Unfortunately that doesn't really solve my problem. I need to know how big I can set the
window while not going past the task bar.
For instance my resolution is 1920x1080 right now. If I set screen size to that, the bottom
of the window is under the task bar whether I use setTopLevelSize or setSize.
What I think I need is something that takes requested screen size (ie 1920x1080), checks
to see if the task bar is visible and if so subtracts the height of the task bar from the requested
height then sets size.