[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 &quot;Fill&quot; and \
&quot;Expand&quot; properties.<br />Create a 2 element Box, set one element to \
&quot;expand=yes&quot; and the widget you want at the bottom to \
&quot;expand=no&quot;.<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&#39;t be resized.<br /><br />-Harry<br /><br /><br />On , jody \
&lt;jody.xha@gmail.com&gt; wrote:<br />&gt; Hi<br />&gt; <br />&gt; Thank you for \
your suggestion.<br />&gt; <br />&gt; Unfortunately it did not work, and there were \
many runtime (error?)<br />&gt; <br />&gt; messages of the form<br />&gt; <br />&gt; \
<br />&gt; <br />&gt; (IQApp:20626): Gtk-CRITICAL **: IA__gtk_widget_get_mapped: \
assertion<br />&gt; <br />&gt; `GTK_IS_WIDGET (widget)&#39; failed<br />&gt; <br \
/>&gt; <br />&gt; <br />&gt; Jody<br />&gt; <br />&gt; <br />&gt; <br />&gt; On Thu, \
Jul 5, 2012 at 2:32 PM, Yann Leydier yann@leydier.info&gt; wrote:<br />&gt; <br \
/>&gt; &gt; Hi,<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt; if the alignments \
do not work (I don&#39;t use them, so I don&#39;t know if they<br />&gt; <br />&gt; \
&gt; should), perhaps, you&#39;ll need to pack an Invisible atop of your widget :<br \
/>&gt; <br />&gt; &gt; \
http://developer.gnome.org/gtkmm/2.24/classGtk_1_1Invisible.html<br />&gt; <br />&gt; \
&gt;<br />&gt; <br />&gt; &gt; yann<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; \
&gt;<br />&gt; <br />&gt; &gt; On 04/07/12 18:10, jody wrote:<br />&gt; <br />&gt; \
&gt;&gt;<br />&gt; <br />&gt; &gt;&gt; Hi<br />&gt; <br />&gt; &gt;&gt;<br />&gt; <br \
/>&gt; &gt;&gt; When i place a widget in a Frame which has a fixed width and i \
change<br />&gt; <br />&gt; &gt;&gt; my window&#39;s size,<br />&gt; <br />&gt; \
&gt;&gt; the widget always is positioned in the center of the frame.<br />&gt; <br \
/>&gt; &gt;&gt; Is there a way to  place a widget in a Frame so that it always<br \
/>&gt; <br />&gt; &gt;&gt; &quot;sticks&quot; to the bottom?<br />&gt; <br />&gt; \
&gt;&gt; Perhaps with a different container?<br />&gt; <br />&gt; &gt;&gt; (I also \
tried to place the widget inside an Gtk::Alignment which i<br />&gt; <br />&gt; \
&gt;&gt; called with m_Alignment(Gtk::ALIGN_START, Gtk::ALIGN_END)<br />&gt; <br \
/>&gt; &gt;&gt; hoping the &quot;ALIGN_END&quot; would do the trick...)<br />&gt; <br \
/>&gt; &gt;&gt;<br />&gt; <br />&gt; &gt;&gt; Thank You<br />&gt; <br />&gt; &gt;&gt; \
Jody<br />&gt; <br />&gt; &gt;&gt; _______________________________________________<br \
/>&gt; <br />&gt; &gt;&gt; gtkmm-list mailing list<br />&gt; <br />&gt; &gt;&gt; \
gtkmm-list@gnome.org<br />&gt; <br />&gt; &gt;&gt; \
https://mail.gnome.org/mailman/listinfo/gtkmm-list<br />&gt; <br />&gt; &gt;&gt;<br \
/>&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt; \
_______________________________________________<br />&gt; <br />&gt; &gt; gtkmm-list \
mailing list<br />&gt; <br />&gt; &gt; gtkmm-list@gnome.org<br />&gt; <br />&gt; &gt; \
https://mail.gnome.org/mailman/listinfo/gtkmm-list<br />&gt; <br />&gt; \
_______________________________________________<br />&gt; <br />&gt; gtkmm-list \
mailing list<br />&gt; <br />&gt; gtkmm-list@gnome.org<br />&gt; <br />&gt; \
https://mail.gnome.org/mailman/listinfo/gtkmm-list<br />&gt; <br />&gt;



_______________________________________________
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