Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Label control – line spacing

Label control – line spacing

Label control – line spacing

A label control has its Wordwrap property set to .T. Is it possible to vary the line spacing of the text that may appear in its caption? - other than by altering the font size.


RE: Label control – line spacing


RE: Label control – line spacing

Andrew, the only way I can think of doing this would be to work out at design time where the line breaks will go and therefore how many lines you will need; create that number of separate label controls; and place them on the form at the desired spacing. Not a pretty solution, I admit.

Or, instead of a label, use a Web Browser Activex control. Point it to a chunk of HTML that includes in-line CSS to specify the desired line spacing. But that would be enormous overkill, and not one that I am seriously suggesting.


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Label control – line spacing

Thank you both. It was just a thought - if it was easy to do. Andrew

RE: Label control – line spacing

There are no leading nor kerning settings (https://creativemarket.com/blog/whats-the-differen...), this isn't word processing. Mike gave the options in detail:

1. Multiple labels, simple for a specific text.
2. Controls (ActiveX), which offer leading (Webbrowser Control using CSS, Word Document object, possibly RTF Text control, TxControl)

Go for 1 for any specific text, only go for 2 if this is worth the effort, because any solution is over the top for anything about 2-3 lines only.

Bye, Olaf.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close