> 2010/9/3 Benoît Minisini <[email protected]>:
> > I couldn't find a better solution than Doriano, because there is no easy
> > way to know the size of a control border in Qt and GTK+.
> > 
> > Moreover, I don't see the need of adjusting a TextBox to its contents, as
> > usually this is an editable control, and so the user can enter any text
> > in it. Or maybe you are doing something not usual with a TextBox? :-)
> > 
> > --
> > Benoît Minisini
> 
> Yes is unusual. An experiment derived of a little misunderstanding,
> just for learn about.
> 
> The best solution that I found was:
> 
> txtSomeThing.Width = txtSomeThing.TextWidth(txtSomeThing.Text & "W")

This is not a solution, as the width of the border is not related to the width 
of the "W" character at all.

-- 
Benoît Minisini

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to