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.
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)
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.