Re: [gtk-list] Re: resizing children of paned
- From: Todd Dukes <tjdukes flash net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: resizing children of paned
- Date: Sat, 25 Apr 1998 22:22:40 -0500
Owen Taylor wrote:
>
> 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
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
I was thinking of the way you can specify the min size allowed like
in the motif paned window. I will try sizing the left hand widjet.
thanks
Todd
--
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]