by Edward (4 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
Finds the most appropriate font size to display a piece of Text in a picture box. Allows user to determine the Alignment of the text (Left, Right, Centre or Full justification). Options to include a drop-shadow, and the direction of the shadow are also included. Includes test form with example.
Inputs
TextToPicture(
Picture - Picture Box to fit text to
sString - the Text to fit
[Align] - optional Alignment
[Border]- optional border size (Twips)
[Shadow]- position of drop shadow
[ShadowColor] - colour of drop shadow
'
Code Returns
Boolean Return (False if unable to fit text into the Picture box)
Upload