Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 10 of 12 total |
TLabel.AutoSize blip |
Sun, May 6 2012 11:28 AM | Permanent Link |
Malcolm Taylor | Tim
I just noticed that setting AutoSize to false does not appear to fix the width as designed. I have a TLabel with quite a long caption so I set AutoSize to false and WordWrap to true. But no matter how small I make the width at design time (where the width is remembered and the caption displayed as expected), the compiled and deployed form shows the caption wrapped close to the right margin of the form. Seen on IE9, FireFox and Chrome. Malcolm |
Mon, May 7 2012 12:20 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Malcolm,
<< I just noticed that setting AutoSize to false does not appear to fix the width as designed. I have a TLabel with quite a long caption so I set AutoSize to false and WordWrap to true. But no matter how small I make the width at design time (where the width is remembered and the caption displayed as expected), the compiled and deployed form shows the caption wrapped close to the right margin of the form. >> I'll make sure this is fixed, thanks. Tim Young Elevate Software www.elevatesoft.com |
Wed, May 9 2012 10:23 AM | Permanent Link |
Matthew Jones | Tim,
Not really important, but it would be nice to know how to make a string that will have a line break in the word wrapped TLabel. Given: (with properties cut for clarity) object lblResult: TEWBDesignLabel AutoSize = False Caption = 'hello'#13#10'mum' WordWrap = True end This works fine on display. But lblResult.Caption := 'hello' + Char(#13) + Char(#10) + 'mum'; does not acheive the same. I also tried: lblResult.Caption := 'hello'#13#10'mum'; but that doesn't compile. (I also tried sending the fixed caption to the server for output using Codesite, but it seemed to lose whatever is in the middle somewhere.) /Matthew Jones/ |
Wed, May 9 2012 2:01 PM | Permanent Link |
Malcolm Taylor | Hi Matthew
That intrigued me so I did a few tests. I found that assigning the Caption at run time with line breaks worked for me provided I used '+' between each part and if using #13#10 it needs a + between the two like <string> + #13 + #10 + <string>. However, it also works for me if I skip the #13 and just use <string> + #10 + <string>. Does this help you? (But Tim may eventually want to make it more like delphi) |
Thu, May 10 2012 5:34 AM | Permanent Link |
Matthew Jones | That probably does help. I wondered last night while drifting to sleep if something
like \n would work as the string will end up in JavaScript. I'll perhaps try that too. /Matthew Jones/ |
Thu, May 10 2012 6:02 AM | Permanent Link |
Matthew Jones | None of those work for me FWIW. Nor does \n or \r.
/Matthew Jones/ |
Fri, May 11 2012 12:45 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Not really important, but it would be nice to know how to make a string that will have a line break in the word wrapped TLabel. >> The issue is that the TLabel isn't translating the CRLF's into <br> tags properly. I'll make sure this is fixed for the next build/release. Thanks, Tim Young Elevate Software www.elevatesoft.com |
Mon, Feb 11 2013 10:38 AM | Permanent Link |
Matthew Jones | Tim,
Is there a way to pass HTML to the TLabel? I would like to be able to assign basic formatting, like <i> and <b> and <br> in the labels. Happy to have some special function to "bypass" any encoding that might otherwise be done. /Matthew Jones/ |
Thu, Feb 14 2013 11:39 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Is there a way to pass HTML to the TLabel? I would like to be able to assign basic formatting, like <i> and <b> and <br> in the labels. Happy to have some special function to "bypass" any encoding that might otherwise be done. >> No, the labels only use straight-text. Tim Young Elevate Software www.elevatesoft.com |
Thu, Feb 14 2013 2:45 PM | Permanent Link |
Matthew Jones | > No, the labels only use straight-text.
Is that a Javascript limit, or EWB? Changeable in future, or not? I suspect using a TPage would be too hard (particularly as I need the height), but simple highlighting would be nice. /Matthew Jones/ |
Page 1 of 2 | Next Page » | |
Jump to Page: 1 2 |
This web page was last updated on Friday, December 6, 2024 at 01:43 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |