[Gambas-user] TextWidth

Fabián Flores Vadell fabianfloresvadell at ...626...
Fri Sep 3 00:50:13 CEST 2010


When I try to adjust the width of a TextBox to its content, I use
txtSomeThing.Width = txtSomeThing.TextWidth(txtSomeThing.Text). But
doing that, the width of TextBox never be enought to show its content
completely.

I tried to find a correction factor but this is a fallible method. How
I can adjust exactly the width of a TextBox to its content?

-- 
Fabián Flores Vadell
www.speedbooksargentina.blogspot.com




More information about the User mailing list