[Gambas-user] text in button auto wrap

Stefano Palmeri rospolosco at ...152...
Sat Jun 20 15:55:06 CEST 2009


Il sabato 20 giugno 2009 15:24:02 kobolds ha scritto:
> i wish that the text on the button auto wrap if too long not cut off like
> right now. how do i do that

Use a shorter text ;-)

I think you can't, but you can easily resize the button.

DIM iButton1TextWidth AS Integer
 
  iButton1TextWidth = Button1.Font.Width("my very long text")
  Button1.Width = iButton1TextWidth + 20
  Button1.Text = "my very long text"




More information about the User mailing list