VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Draw FORMATTED Text to any window with a hDc

Steven H  (1 Submission)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Allows you to draw Formatted (diffrent fonts, sizes, colours) text to anything with a valad hDc - only tested against Screen Objects - Converts Font Object to LOGFONT struct
IMPUTS: StdFontEx, Rect - Bottom Top Left Right, hDc, Text, Text Allignment Flags.
Either provided as Paramaters of the .Draw procedure or as Properties of the cTextEx Object
RETURNS: no Returns
SIDE EFFECTS: no Knowen Side Effects
Misc: you MUST pass a StdFontEx object as either a Paremter or a Property of the cTextEx object. cStdFontEx mirrors functonalaty provided by the StdFont object. i only added a Colour Property (it makes sence to do this) future revisions of this class will encorperate diffrent brush styles thus the reasoning for mirroring the vb font object

Inputs
StdFontEx, Rect - Bottom Top Left Right, hDc, Text, Text Allignment Flags. Either provided as Paramaters of the .Draw procedure or as Properties of the cTextEx Object

Assumes
you MUST pass a StdFontEx object as either a Paremter or a Property of the cTextEx object. cStdFontEx mirrors functonalaty provided by the StdFont object. i only added a Colour Property (it makes sence to do this) future revisions of this class will encorperate diffrent brush styles thus the reasoning for mirroring the vb font object

Returns
no Returns

Side Effects
no Knowen Side Effects

Rate Draw FORMATTED Text to any window with a hDc (2(2 Vote))

Download Draw FORMATTED Text to any window with a hDc

Draw FORMATTED Text to any window with a hDc Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters