Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Debugger branch: Placement of Windows
ollydbg:
--- Quote from: oBFusCATed on January 18, 2012, 10:31:35 pm ---ollydbg: Can you try in a trunk version to remove the CenterToParent call in the Compiler dialog and to see if it places the dialog at the center of the screen?
--- End quote ---
I just test it by removing "CentreOnParent();" in the line 104 of cb_trunk\src\src\compilersettingsdlg.cpp.
The result is: dialog does NOT show on the center of the parent window.
PS: CentreOnParent() function works OK on my WinXP without any problem. (wx2.8.12)
Jenna:
--- Quote from: ollydbg on January 19, 2012, 02:01:28 am ---
--- Quote from: oBFusCATed on January 18, 2012, 10:31:35 pm ---ollydbg: Can you try in a trunk version to remove the CenterToParent call in the Compiler dialog and to see if it places the dialog at the center of the screen?
--- End quote ---
I just test it by removing "CentreOnParent();" in the line 104 of cb_trunk\src\src\compilersettingsdlg.cpp.
The result is: dialog does NOT show on the center of the parent window.
PS: CentreOnParent() function works OK on my WinXP without any problem. (wx2.8.12)
--- End quote ---
What are your settings in "Settings -> View" for Multimonitor placement ?
ollydbg:
--- Quote from: jens on January 19, 2012, 06:33:57 am ---
--- Quote from: ollydbg on January 19, 2012, 02:01:28 am ---
--- Quote from: oBFusCATed on January 18, 2012, 10:31:35 pm ---ollydbg: Can you try in a trunk version to remove the CenterToParent call in the Compiler dialog and to see if it places the dialog at the center of the screen?
--- End quote ---
I just test it by removing "CentreOnParent();" in the line 104 of cb_trunk\src\src\compilersettingsdlg.cpp.
The result is: dialog does NOT show on the center of the parent window.
PS: CentreOnParent() function works OK on my WinXP without any problem. (wx2.8.12)
--- End quote ---
What are your settings in "Settings -> View" for Multimonitor placement ?
--- End quote ---
Unchecked. (I do not have multi monitors, I have never changed this option, so it is by default)
Jenna:
--- Quote from: ollydbg on January 19, 2012, 07:01:54 am ---
--- Quote from: jens on January 19, 2012, 06:33:57 am ---
--- Quote from: ollydbg on January 19, 2012, 02:01:28 am ---
--- Quote from: oBFusCATed on January 18, 2012, 10:31:35 pm ---ollydbg: Can you try in a trunk version to remove the CenterToParent call in the Compiler dialog and to see if it places the dialog at the center of the screen?
--- End quote ---
I just test it by removing "CentreOnParent();" in the line 104 of cb_trunk\src\src\compilersettingsdlg.cpp.
The result is: dialog does NOT show on the center of the parent window.
PS: CentreOnParent() function works OK on my WinXP without any problem. (wx2.8.12)
--- End quote ---
What are your settings in "Settings -> View" for Multimonitor placement ?
--- End quote ---
Unchecked. (I do not have multi monitors, I have never changed this option, so it is by default)
--- End quote ---
If the Multimonitor placement checkbox is unchecked and PlaceWindow() is not called with the third parameter set to true (defaults to false), it does nothing.
See sdk/globals.cpp:1017 .
That is obviously not the best way to implement it (or more exactly) the name is misleading).
You can call PlaceWindow with pdlCentre as second and true as third parameter to enforce placing the window (more or less) regardless the settings in "Settings -> View" .
oBFusCATed:
So, what should we/I do to fix this problem? Use both functions?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version