Re: scrollable vbox
- From: Opel Martin <martin opel informatik fh-regensburg de>
- To: gtk-app-devel-list gnome org
- Subject: Re: scrollable vbox
- Date: Wed, 10 Oct 2001 08:32:07 +0200
alblas wrote:
..snip...
Unfortunatley that doesn't really help.
With gtk_widget_set_usize you can determine the minimum size to which you
can resize. But the vbox with buttons still grows as I resize the window.
What I need actually is a scrollable vbox with buttons, and next to it a
text widget. Now, what happens is that the available width is equally
distributed between the vbox and the text widget.
If I use gtk_widget_set_usize for both vbox and text the distribution of
width between the 2 can be changed. So, with the right width for both
widgets I can get more or less what I want:
gtk_widget_set_usize(vbox_widget,0,0); /* minimum width
such that wuttons just fit */
gtk_widget_set_usize(text_widget->parent,100,0); /* text widget much wider
*/
Until I resize the window to a bigger width; then, both text and vbox are
resized.
So, the question still stands: How to realize a vertical scrollable vbox
with always minimum width?
Did you try it with a hbox to put the scrollable vbox and the textwidget
in it.
To add both widgets, use the following:
box = gtk_hbox_new(FALSE, 5); /* hbox for scrollable and textwidget */
gtk_box_pack_start(GTK_BOX(box), scrollable_vbox, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(box), text_widget, TRUE, TRUE, 0)
Rob.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]