U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
[Bug (minor)]: CenterScreen not working
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48631&th=10093#msg_48631
fullscreen to false, the position of the window is not centered if you call
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.]]>rafiwui2017-08-10T09:02:13-00:00Re: [Bug (minor)]: CenterScreen not working
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48697&th=10093#msg_48697
CenterScreen (and related methods) only apply when window is being opened. After that, SetRect always sets real position of window "client area".
It is only stated in the first method in the series (NoCenter). Adding to all of them.
Mirek
]]>mirek2017-08-25T07:10:04-00:00Re: [Bug (minor)]: CenterScreen not working
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48698&th=10093#msg_48698
FullScreen() is opening the window in the moment whent it is called?]]>rafiwui2017-08-25T07:13:22-00:00Re: [Bug (minor)]: CenterScreen not working
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48701&th=10093#msg_48701
rafiwui wrote on Fri, 25 August 2017 09:13
So FullScreen() is opening the window in the moment whent it is called?
No. It is a flag that affects how window will be opened (using Open or OpenMain).]]>mirek2017-08-25T12:21:00-00:00