> 2010/9/4 Benoît Minisini <[email protected]>: > >> 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. > > I know that, but it works much better than "+N". However Is ugly and > fallible too.
Alas it depends on the widget theme. For example, the Oxygen KDE style has a very big inside margin for textboxes, so you must add more space! -- 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
