VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Fit Text to Picture Box

Edward  (4 Submissions)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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 '

Returns
Boolean Return (False if unable to fit text into the Picture box)

Rate Fit Text to Picture Box (2(2 Vote))
Fit Text to Picture Box.bas

Fit Text to Picture Box Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters