Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
rafiwui is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: DBus integration -- need help
Next Topic: [Feature request] Relative positioning
Goto Forum:
  


Current Time: Sun Dec 08 20:13:34 CET 2019

Total time taken to generate the page: 0.01135 seconds