TMiniStaticText (66Kb package attached)
Summary:
Justification and Hyphenation:
MiniStaticText hyphenates words when control width reaches a size less than 500 pixels. For larger widths it only justifies it. Hyphenation tries to avoid so called "loose lines" and "rivers" of white space caused by justification. Of course hyphenation depends on the quality of the dictionary of your language. Every LineEnding is interpreted as paragraph end.
Formatted Text:
MiniStaticText accepts formatted text through its property FormattedText:
bold, italic, underline, strikeout, colored text
MiniStaticText has a limit of 10,000 bytes.
Hyphen.pas, hyphen.dll, and hyphenation dictionary (hyph_your_language.dic) must be present on project folder in order of MiniStaticText can work properly. Hyphen.dll must be distribuited along with your program and must be on the path.
Copyright notes:
1) The hyphenation dictionary is from OpenOffice, you can get one to your own language there (
http://wiki.openoffice.org/wiki/Dictionaries).
2) The hyphenation DLL and SO files are from Hunspell project (
http://hunspell.sourceforge.net/).
"NHunspell is licensed under: GPL/LGPL/MPL. Free use in commercial applications is permitted according to the LGPL and MPL licenses. Your commercial application can link against the NHunspell DLLs."
3) Hyphen.pas is from Theo (
http://forum.lazarus.freepascal.org/index.php?action=profile;u=4660Use TMiniStaticText only if you need a little cosmetic text in you application.