Re[2]: A springs and struts widget for GTK+




Hi,

Russell Shaw wrote:
Greg Breland wrote:

On Tue, 2005-08-16 at 00:50, andrey wrote:

hi,

i have a question in accordance with your message.
Is there in GTK+ "Position Layout", like in most of gui-libraries?
For example i want to place label or button in position x=100, y=100, 
width=100 and height=25. (sorry for my english)



Yes, there is the GTKFixed layout container.  It's highly recommended
that you use containment based layout instead of absolute layout unless
you know what your getting into.  All sorts of layout problems will
happen with the GTKFixed layout when the user uses a different
font/DPI/etc than you do when designing a form.

http://developer.gnome.org/doc/API/2.0/gtk/GtkFixed.html


What's wrong with the M$ windows way of layout?
Everything. Non resizable windows, windows that look odd when enlarging the 
font. If windows are resizable then the often add new space equally to every 
widget (which is non-sense).
Apart IMHO its more work to re-calculate the positions, than just to stuff 
another button into a box and let the layouter do the math.

Stefan

"Side to side" layout make more flexibility for different font... ,
 but in some cases size of interface code is'n optimized (very large).
 Using "position" layout may reducing code.

Thanks. Andrey.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]