From: SourceForge.net <no...@so...> - 2007-11-03 15:09:53
|
Bugs item #1760418, was opened at 2007-07-25 10:34 Message generated for change (Settings changed) made by wdashley You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1760418&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: External Functions Group: 3.2.0 >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Mark Miesfeld (miesfeld) Assigned to: Mark Miesfeld (miesfeld) Summary: ooDialog - createCenter does not center dialog Initial Comment: In ooDialog the UserDialog has a method createCenter which is supposed to center the dialog on the screen when it is created. However, the created dialog is not centered on the screen. The immediate cause of the bug is that the method is using the size of the dialog to calculate the centered position. But, the screen size is in pixels and the dialog size is in dialog template units, so the calculation is incorrect. In addition, dialogs have a DS_CENTER style that tells the OS to center the dialog. This is a better way to achieve a centered dialog because the OS seems to always get it right. I'll attach a sample program that uses createCenter where it is fairly obvious the created dialog is not centered. ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2007-07-25 11:01 Message: Logged In: YES user_id=191588 Originator: YES Committed revision 627. This commit changes the createCenter method so that it uses the DS_CENTER dialog style. It also updates the parsing of .rc files so that the DS_CENTER style is not ignored if present. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1760418&group_id=119701 |