Re: GTK: give a column of wa hbox a fixed size
- From: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK: give a column of wa hbox a fixed size
- Date: Mon, 07 Jun 2004 12:14:58 +1000
Walter Brebels wrote:
On Sat, 2004-06-05 at 04:34, Russell Shaw wrote:
Walter Brebels wrote:
Ok here's the structure of my application:
I have a hbox 2 columns, and in the right column I have a vbox, I need
to give that column, meaning the vbox a fixed size, how do I do this?
Maybe the "fixed" container:
http://www.gtk.org/tutorial/sec-fixedcontainer.html
No, that only allows me to put boxes in that container with a fixed
position, I know its something with the size_request and the
size_allocate event, but I don't exactly know how to do it.
Maybe you could fill the vbox with an eventbox, then pack
the eventbox:
GtkWidget *vbox=gtk_vbox_new(FALSE,0);
GtkWidget *evbox=gtk_event_box_new();
gtk_box_pack_start(GTK_BOX(vbox),evbox,FALSE,FALSE,0);
gint width=500;
gint height=300;
gtk_widget_set_size_request(GTK_WIDGET(evbox),width,height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]