CastleSoft Posted September 29, 2014 Posted September 29, 2014 A boolean 'multiline' option for the unilabel would be nice. Instead of having multiple labels per line for large volumes of text, it would be nice if it autowrapped or could be force onto a new line with a NewLine or <br> tag ?
Sherzod Posted September 29, 2014 Posted September 29, 2014 Hi CastleSoft.Try: UniLabel1.AutoSize := False; Best regards.
CastleSoft Posted September 29, 2014 Author Posted September 29, 2014 Thanks.. Almost. The design view doesn't display the wrap which is a shame, it just truncates.
Administrators Farshad Mohajeri Posted September 29, 2014 Administrators Posted September 29, 2014 Thanks.. Almost. The design view doesn't display the wrap which is a shame, it just truncates. Fixed.
CastleSoft Posted October 1, 2014 Author Posted October 1, 2014 Thanks for the fix. Another minor funny. If you do the following: 1) AutoSize = OFF 2) Switch to View As Text and change the caption to: 'This is my first line'#13#10'and this is my second line' 3) Switch back to design view and resize the height of the label. All looks good in the designer. But when you then view in the web its all on one line. Maybe an option to translate #13#10 to <br> would be nice ?
zilav Posted October 2, 2014 Posted October 2, 2014 Only if it would be optional translation, you can still use <pre> and other means to line wrap in html.
tappatappa Posted January 26, 2015 Posted January 26, 2015 If you set the label caption to "line1<br>line2" the label displays multiline text (at run time) only if the label parent is a Form, a Frame, or a UniScrollBox. If the label parent is a Panel or a ContainerPanel the label is not multiline. Edit: actually, it works. You just need to set TextConversion property := txtHTML
Recommended Posts