3 Replies Latest reply on Apr 3, 2008 2:05 AM by Misenko

    Label auto size


      I have simple label control located on canvas. This label displays simple text on the screen. When application starts, this label contains short text, let's say "Hello" and label width is set to 30. There is no problem yet. But then, after clicking on button, label.text is changed to looong sentence, let's say 200 characters. The problem is, that sentence is truncated because of label width. It is possible to automatically change label width according text lenght so whole text is displayed all the time regardless characters count ??

      I tried to watch width and height of label component after text change, but it has always the same value.

      And second thing, when the text lenght is changed, it is possible to change canvas width on this size ??

      Many thanks for your help