Re: Basic GLADE doubts



RE.RAjaram wrote:

I am new comer to the GTK/Glade world

When i drag and drop a resource like button from Palette, to window1. it
covers the whole window and i am not able to size it ??

Pls advice me
You're obviously using Windows terminology, so I'll make the assumption that you're a Windows developer. Just note that in the text that follows, I'm using the word widget to mean resource.

Unlike Windows, Gtk uses automatic layout. This means you're not supposed to draw your form by manually laying out the widgets (and btw, manual layout is a very bad idea in general, because once you internationalize your application, and the strings change, all your widget sizes will be wrong). Instead, use the layout widgets such as HBox and VBox, and similar, and then drop your widgets into the boxes for them. You'll generally want to build a hierarchy of boxes, in both directions, to subdivide your window into the nicely set placeholders. Then test resizing your application, to see if things move properly. There is a number of properties you can use to control the layout - I'd suggest you just experiment with flags like fill and shrink, and with padding sizes.

There is a GLADE tutorial on IBM developer works, I suggest you go through it.

Also, read the HIG (Human Interface Guidelines) on developer.gnome.org - it gives you very specific schemes for laying out the common cases in the dialog building.

   Miro





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