VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



GDI Management put to good use

by selftaught (17 Submissions)
Category: Graphics
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

Ever written a usercontrol that exposed a Font property? Then this code is for you. cFont.cls uses offers many features you won't get with the StdFont object. You can call the Browse method to show the Font dialog and the font properties will be set automatically if the user chooses a font. You can set the font to the ambient font or a system font and it will update itself provided that you call OnAmbientFontChanged from your usercontrol's AmbientChanged event or OnSettingChange in your WM_SETTINGCHANGED handler. All of the properties from the LOGFONT structure are exposed, including charset, escapement, etc. And I even included a property page that allows for multiple properties on multiple controls to be edited simeltaneously, all your controls have to do is implement the iSupportFontPropPage interface. Sound good? I had hoped so! Bug reports are much appreciated. Also, anyone who has downloaded my last submission, GDI management, should check out the new version I just uploaded with additional optimizations and much more in depth explanations and comments.

Rate GDI Management put to good use

Download GDI Management put to good use

Download GDI Management put to good use (29 KB)

GDI Management put to good use Comments

No comments have been posted about GDI Management put to good use. Why not be the first to post a comment about GDI Management put to good use.

Post your comment

Subject:
Message:
0/1000 characters