CastleSoft Posted September 29, 2014 Share 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 ? Link to comment Share on other sites More sharing options...
Sherzod Posted September 29, 2014 Share Posted September 29, 2014 Hi CastleSoft.Try: UniLabel1.AutoSize := False; Best regards. Link to comment Share on other sites More sharing options...
CastleSoft Posted September 29, 2014 Author Share Posted September 29, 2014 Thanks.. Almost. The design view doesn't display the wrap which is a shame, it just truncates. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 29, 2014 Administrators Share Posted September 29, 2014 Thanks.. Almost. The design view doesn't display the wrap which is a shame, it just truncates. Fixed. Link to comment Share on other sites More sharing options...
CastleSoft Posted October 1, 2014 Author Share 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 ? Link to comment Share on other sites More sharing options...
zilav Posted October 2, 2014 Share Posted October 2, 2014 Only if it would be optional translation, you can still use <pre> and other means to line wrap in html. Link to comment Share on other sites More sharing options...
tappatappa Posted January 26, 2015 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts