[prev in list] [next in list] [prev in thread] [next in thread]
List: gtkmm
Subject: Re: Re: "Sticking" a widget at the bottom of a container
From: harryhaaren () gmail ! com
Date: 2012-07-05 13:15:57
Message-ID: 90e6ba5bbbf1b6f61304c414f25e () google ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I do this doing boxes. You can set the contents "Fill" and "Expand"
properties.
Create a 2 element Box, set one element to "expand=yes" and the widget you
want at the bottom to "expand=no".
In this way, the other widget (blank label for empty space, or whatever)
will fill the remaining space in the window / container, and your widget
won't be resized.
-Harry
On , jody <jody.xha@gmail.com> wrote:
> Hi
> Thank you for your suggestion.
> Unfortunately it did not work, and there were many runtime (error?)
> messages of the form
> (IQApp:20626): Gtk-CRITICAL **: IA__gtk_widget_get_mapped: assertion
> `GTK_IS_WIDGET (widget)' failed
> Jody
> On Thu, Jul 5, 2012 at 2:32 PM, Yann Leydier yann@leydier.info> wrote:
> > Hi,
> >
> > if the alignments do not work (I don't use them, so I don't know if they
> > should), perhaps, you'll need to pack an Invisible atop of your widget :
> > http://developer.gnome.org/gtkmm/2.24/classGtk_1_1Invisible.html
> >
> > yann
> >
> >
> > On 04/07/12 18:10, jody wrote:
> >>
> >> Hi
> >>
> >> When i place a widget in a Frame which has a fixed width and i change
> >> my window's size,
> >> the widget always is positioned in the center of the frame.
> >> Is there a way to place a widget in a Frame so that it always
> >> "sticks" to the bottom?
> >> Perhaps with a different container?
> >> (I also tried to place the widget inside an Gtk::Alignment which i
> >> called with m_Alignment(Gtk::ALIGN_START, Gtk::ALIGN_END)
> >> hoping the "ALIGN_END" would do the trick...)
> >>
> >> Thank You
> >> Jody
> >> _______________________________________________
> >> gtkmm-list mailing list
> >> gtkmm-list@gnome.org
> >> https://mail.gnome.org/mailman/listinfo/gtkmm-list
> >>
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/gtkmm-list
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
[Attachment #5 (text/html)]
I do this doing boxes. You can set the contents "Fill" and \
"Expand" properties.<br />Create a 2 element Box, set one element to \
"expand=yes" and the widget you want at the bottom to \
"expand=no".<br /><br />In this way, the other widget (blank label for \
empty space, or whatever) will fill the remaining space in the window / container, \
and your widget won't be resized.<br /><br />-Harry<br /><br /><br />On , jody \
<jody.xha@gmail.com> wrote:<br />> Hi<br />> <br />> Thank you for \
your suggestion.<br />> <br />> Unfortunately it did not work, and there were \
many runtime (error?)<br />> <br />> messages of the form<br />> <br />> \
<br />> <br />> (IQApp:20626): Gtk-CRITICAL **: IA__gtk_widget_get_mapped: \
assertion<br />> <br />> `GTK_IS_WIDGET (widget)' failed<br />> <br \
/>> <br />> <br />> Jody<br />> <br />> <br />> <br />> On Thu, \
Jul 5, 2012 at 2:32 PM, Yann Leydier yann@leydier.info> wrote:<br />> <br \
/>> > Hi,<br />> <br />> ><br />> <br />> > if the alignments \
do not work (I don't use them, so I don't know if they<br />> <br />> \
> should), perhaps, you'll need to pack an Invisible atop of your widget :<br \
/>> <br />> > \
http://developer.gnome.org/gtkmm/2.24/classGtk_1_1Invisible.html<br />> <br />> \
><br />> <br />> > yann<br />> <br />> ><br />> <br />> \
><br />> <br />> > On 04/07/12 18:10, jody wrote:<br />> <br />> \
>><br />> <br />> >> Hi<br />> <br />> >><br />> <br \
/>> >> When i place a widget in a Frame which has a fixed width and i \
change<br />> <br />> >> my window's size,<br />> <br />> \
>> the widget always is positioned in the center of the frame.<br />> <br \
/>> >> Is there a way to place a widget in a Frame so that it always<br \
/>> <br />> >> "sticks" to the bottom?<br />> <br />> \
>> Perhaps with a different container?<br />> <br />> >> (I also \
tried to place the widget inside an Gtk::Alignment which i<br />> <br />> \
>> called with m_Alignment(Gtk::ALIGN_START, Gtk::ALIGN_END)<br />> <br \
/>> >> hoping the "ALIGN_END" would do the trick...)<br />> <br \
/>> >><br />> <br />> >> Thank You<br />> <br />> >> \
Jody<br />> <br />> >> _______________________________________________<br \
/>> <br />> >> gtkmm-list mailing list<br />> <br />> >> \
gtkmm-list@gnome.org<br />> <br />> >> \
https://mail.gnome.org/mailman/listinfo/gtkmm-list<br />> <br />> >><br \
/>> <br />> ><br />> <br />> > \
_______________________________________________<br />> <br />> > gtkmm-list \
mailing list<br />> <br />> > gtkmm-list@gnome.org<br />> <br />> > \
https://mail.gnome.org/mailman/listinfo/gtkmm-list<br />> <br />> \
_______________________________________________<br />> <br />> gtkmm-list \
mailing list<br />> <br />> gtkmm-list@gnome.org<br />> <br />> \
https://mail.gnome.org/mailman/listinfo/gtkmm-list<br />> <br />>
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic