Re: getFontDialog
- Posted by CChris <christian.cuvier at a?riculture?gouv.fr> Nov 23, 2007
- 616 views
Dan Moyer wrote: > > Windows XP Home Edition, > Version 5.1.2600 Service Pack 2 : > > For what it might be worth, these are the results I get using > Win32Lib ModVersion: 0.60.6 11/July/2005 > > (at least, I *think* that's the version I'm using; I wonder if there is a good > way to PROGRAMMATICALLY interrogate the included Win32Lib for its version #, > being as there isn't a VARIABLE named: "version" in it?) > Eh? Quote from win32lib.ew: --/const Win32LibVersion --/desc Contains the current version of win32lib library. -- This is a sequence containing four elements. /n --/li Major version number (integer) --/li Minor version number (integer) --/li Patch or /i Revision number (integer) --/li Date of the version in DD-Mmm-YYYY format (string) -- --Example --/code -- setText(SB, sprintf("Win32Lib version %d.%d Patch#%d, %s", -- Win32LibVersion)) --/endcode I won't swear that all intermediate steps have this variable properly set though... If only because a minor patch loke 0.70.2b cannot be specified - I'll probably change that, thanks for mentioning it. It is defined as early as v0.55.5. I don't have earlier versions of the library. > "Arial", "Bold" and 14 yields: > Arial, button:bold, dialog report:REGULAR, and 14; > (note: the BUTTON actually BECOMES BOLD, but the dialog SAYS it's "Regular") > > "Arial", "Bold" and 15 yields: > Arial, button:bold, dialog report:REGULAR, and 15; > (same note as above) > > SUMMARY: up to *15* SIZE is implemented correctly on button and reported same > in dialog, and STYLE is implemented correctly on button but NOT reported > correctly > in dialog after clicking button again. > > ------------------------------------------ > > "Arial", "Bold" and 16 yields: > Arial, button:bold, dialog report:REGULAR, and 17; > (same note as above) > > "Arial", "Bold" and 24 yields > Arial, button:bold, dialog report:REGULAR, and 25; > (same note as above) > > SUMMARY: at and at least for some above 16, SIZE is wrongfully INCREMENTED by > one for both implementation on button and report in dialog, and STYLE is again > implemented correctly on button, but NOT reported correctly in dialog. > > Note about button/dialog variance: > when I SELECT "bold", the dialog initially INDICATES "bold"; on "ok", the > button now SHOWS in BOLD, but when CLICKED on again, the dialog NOW SAYS > "regular", > and if "ok" clicked, the button will display in regular. > > Dan Moyer I never noticed that "regukar" was substituted. See my post from a few hours ago. The corrected version is probably up for download now. CChris