comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Gtk Toolbars
Date: Mon, 5 Oct 2009 09:36:57 +0200
Date: 2009-10-05T09:36:55+02:00	[thread overview]
Message-ID: <vtyd0xll7e1v.wq5vt9ywi2bj$.dlg@40tude.net> (raw)
In-Reply-To: eb586ef2-4447-4d55-b9bf-25955a0632dd@j19g2000vbp.googlegroups.com

On Sun, 4 Oct 2009 18:26:43 -0700 (PDT), RasikaSrinivasan@gmail.com wrote:

> this is probably not specific to GtkAda:

Yes, it is Gtk.

> I want to prevent the toolbar from resizing when the container is
> resized. all the examples i have looked does not seem to answer this
> question. there is a way to specify the min size but not a max size.
> Any ideas?

That depends on the container. They usually have parameters like Fill and
Expand. Both should be False. Sometimes it is a combination of flags where
the value Shrink should be given, etc. In some cases it is the container
itself, which has to be not resized. For example, VBox resizes all elements
horizontal sizes when itself gets resized. There is no way to prohibit this
otherwise than by not resizing the VBox itself, even so the horizontal size
is the maximum of all its elements.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



      reply	other threads:[~2009-10-05  7:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  1:26 Gtk Toolbars RasikaSrinivasan@gmail.com
2009-10-05  7:36 ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox