Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Label wrap to next line in Flow Layout

    Hi,

    I have labels inside a FlowLayout and I want them to be wrapped to the next line of the layout and not on the same line.

    What I mean is that if I have 3 labels in the first line and the third label does not fit the line, I am getting the first attached picture (labels1.png).

    What I need is to have the second attached picture (labels2.png).

    Label1 = Label1
    Label2 = Label2
    Label3 = this is the third label testing


    The first case is by using label.setWrap(true);

    I also tried flowLayout.setAutoWrapLines(true); but it did not work, it returned all the third label to line 2.

    Any idea on how to do this??

    I am using:
    SmartGWT 1.3 revision 800
    GWT 1.6.4
    IE 7

    Thanks
    Attached Files

    #2
    If you want normal HTML text wrapping why are you creating all this layout structure? Just put the text into a single HTMLFlow.

    Comment


      #3
      Hi,

      I need to use different Labels or Widgets because in My sentence I have some of the labels used as hyperlinks.

      I might have the sentence as:
      Label1 Hyperlink1 Label2 Label3
      Hyperlink2 Label4...

      I also need to treat each Widget separately because I need to show a message onMouseOver of the Hyperlink.

      Is this possible?

      Thanks
      Last edited by Halabe; 3 Nov 2009, 07:18.

      Comment


        #4
        Just use 1 Label with normal <a href="">Blah</a> hyperlinks in it.

        Comment


          #5
          Hi,

          I tried it but I need to treat the Hyperlink in a different way than all the label.

          I mean when the mouse is over the hyperlink, I need to show a popup and a different popup window on the second hyperlink.

          Thanks

          Comment

          Working...
          X