by Steven H (1 Submission)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
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
Code Returns
no Returns
Side Effects
no Knowen Side Effects
Download Draw FORMATTED Text to any window with a hDc (8 KB)