VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Fit Text to Picture Box

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)

Rate Fit Text to Picture Box

Upload

Download this snippet    Add to My Saved Code

Fit Text to Picture Box Comments

No comments have been posted about Fit Text to Picture Box. Why not be the first to post a comment about Fit Text to Picture Box.

Post your comment

Subject:
Message:
0/1000 characters