From: SourceForge.net <no...@so...> - 2011-03-24 07:21:49
|
Patches item #3239768, was opened at 2011-03-24 07:02 Message generated for change (Comment added) made by nijtmans You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312997&aid=3239768&group_id=12997 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: 13. Win Menus Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: John Wehle (jwehle) Assigned to: Todd Helfter (tmh) Summary: tk8.4.19 (and later) WIN32 menu font support Initial Comment: Enclosed is a patch which allows tk8.4.19 when built with newer Microsoft compilers (MSVC 2008) to correctly get the menu font information. The problem is that the size of ncMetrics is larger when using the newer compilers causing the SystemParametersInfo call to fail on win2k/win2k3/winxp. This results in the menu font being ill defined (e.g. Arial 396 which is huge). Changes: 1) In SetDefaults adjust the size of ncMetrics when running on older operating systems as describe in the remarks section of: http://msdn.microsoft.com/en-us/library/ff729175(v=VS.85).aspx Notes: 1) It appears from looking at the tk8.5.9 and tk8.6b1 source code that the problem is also present in those releases. 2) This may require work to support older compilers which are missing iPaddedBorderWidth. ---------------------------------------------------------------------- Comment By: Jan Nijtmans (nijtmans) Date: 2011-03-24 08:21 Message: Thanks! I will have a look at this ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312997&aid=3239768&group_id=12997 |