[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Grid Control

At 09:00 PM 2/23/2001 +0530, you wrote:
sorry for this stupid a question. i found it in glade, its called a Column
List or a clist
another stupid one follows:

i'm not able to resize the controls, at least not the height, any control
occupies the whole of the width of the window.
any links to a glade tutorial please, i have not been able to find these n
the net.

I hope you are aware of Gtk+'s container/control model:

A control will always occupy the full space provided by the container, and the container in turn occupies the full space provided by its container (leading up to the form).

There are three types of containers:

1. Multiple row/column containers.
2. Double row/column user-resizable containers.
3. Free-locating container.

The third type gives you an environment like VB/Delphi, where you can pixel-position controls and specify height/width. This must be what you are looking for. Using this type is not recommended because your layouts will be royally messed up when the user applies a theme that uses different font sizes. The first or second type of containers, OTOH, will automatically resize.

This takes a little getting used to, and experimenting with layouts is painful, but the advantage of consistency across user preferences is undeniable.

Have fun!


Kiran Jonnalagadda