Re: resizing children of paned
- From: Owen Taylor <otaylor gtk org>
- To: Todd Dukes <tdukes ibmoto com>
- Cc: gtk <gtk-list redhat com>
- Subject: Re: resizing children of paned
- Date: 25 Apr 1998 16:07:12 -0400
Todd Dukes <tdukes@ibmoto.com> writes:
> I am using a vertical paned window to show two widgets.
> The widget on the left is a tree. When the paned window first
> comes up the left widget is squished. How can I set the position
> of the sash in the paned window. I see child1_size in the _GtkPaned
> structure but setting it before showing the widget doesn't seem to work.
>
> I also see handle_xpos but it doesn;t seem to do anything either.
>
> Is there a standard method for doing this?
What you probably want to do is call gtk_widget_set_usize() on
the left hand widget to establish an initial default size.
(You can specify just the width and not the height by passing
a height of -1)
There is currently no way to change the division under program
control; that could be added, but I suspect in your case,
gtk_widget_set_usize() is closer to what you want anyways.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]