> I've always had this problem in gambas. Using gb.gtk > I have buttons, textlabels and such objects on a form. > My project is translatable, which means that the space needed for the > their .text property is not always the same. > > Is there a way gambas could figure out exacly object's width needed to > fit their .text property? > > FWIW, I've done just a bit of pygtk reading and practicing.. and in > their case, the objects are always as wide as they need to be.. no > need to adjust their .width property. > Maybe gambas can implement something like that? >
At the moment, you have to provide enough space to controls, and I agree this is not the good way. Some controls (Label and TextLabel) have an AutoResize property if you need them. I will think about that. I don't like the wat QT and GTK+ behave (when buttons do not have all the same size for example), and I want to find something better. This will need some new containers... Regards, -- Benoît ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
