Announcement

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

    TextItem Size

    Is there any way of changing the size of a TextItem? Not the length, which is the amount of characters that can be typed into the text input section, but the displayed size or width of the text input section of the TextItem object. If this were an HTML input object, it would be the "size" attribute.

    I'm hoping there's a simple solution for this, and I'm just overlooking the incredibly obvious.

    Thanks

    #2
    setWidth()

    Comment


      #3
      Thanks Dave. It worked, but only if I used the form of the method that takes an integer, not the one that takes a string. In the past, I only experimented with using the string version, hence my frustration.

      I'm still not sure why the string version doesn't work. When I called

      Code:
      textItem("30px");
      nothing happened. But when I called

      Code:
      textItem(30);
      it worked. Go figure.

      Thanks again.

      Comment


        #4
        The string version is for percentages or the special "*" width. The integer version is for fixed pixel width.

        Comment


          #5
          setting the length

          How to set the length of textitem to unlimited size?

          Comment

          Working...
          X