Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Label control – line spacing

Status
Not open for further replies.

AndrewMozley

Programmer
Oct 15, 2005
621
GB
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.

Thanks.
 
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

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Thank you both. It was just a thought - if it was easy to do. Andrew
 
There are no leading nor kerning settings ( 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top