ToolStripItem text problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mecena
    New Member
    • Apr 2007
    • 31

    ToolStripItem text problem

    Hi!

    I have a ToolStrip with ToolStripButton s as items. Each button has an image and text placed after image. When I set AutoSize to false and resize, text is fixed and the image gets trimmed. How can I set it to word-wrap or to trim text instead of image?

    M.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Does changing the position of text vs image help?
    Like if you tell the image to draw top-left and text middle-center, it might wrap correctly?

    You could also try putting in a manual line break in your button text.

    Comment

    • Mecena
      New Member
      • Apr 2007
      • 31

      #3
      Originally posted by Plater
      Does changing the position of text vs image help?
      Like if you tell the image to draw top-left and text middle-center, it might wrap correctly?

      You could also try putting in a manual line break in your button text.

      thanx for the reply! i've tried the first suggestion, i'm affraid that's not it. Manual breaks work fine, i can do the resize in code and manually break text if needed (actually that's my current solution), but i'd like it to behave like regular buttons, that is when you resize it, the text should trim (not wrap) and image should stay fixed. ToolStripButton does just the opposite:)

      Comment

      Working...