Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [Bug (minor)]: CenterScreen not working
[Bug (minor)]: CenterScreen not working [message #48631] |
Thu, 10 August 2017 11:02 |
rafiwui
Messages: 105 Registered: June 2017 Location: Stuttgart, Germany
|
Experienced Member |
|
|
If you explicitly set fullscreen to false, the position of the window is not centered if you call
FullScreen(false);
SetRect(0, 0, sizeX, sizeY);
Even if you call it like this:
FullScreen(false);
SetRect(0, 0, sizeX, sizeY);
CenterScreen();
So something in FullScreen overrides any other (even if called after it) settings specifying the position.
The only workaround (besides removing the FullScreen(false) call) is to manually set a position in SetRect:
FullScreen(false);
SetRect(50, 50, sizeX, sizeY);
Because if the position is set to zero, you cant see the window bar.
Greetings
Daniel
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 06:34:55 CEST 2024
Total time taken to generate the page: 0.03627 seconds
|