Re: [gtk-list] Re: Optimum way to set the width of a clist
- From: José Miguel Rodríguez <jmiguel ceselsa es>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Optimum way to set the width of a clist
- Date: Thu, 23 Sep 1999 11:54:18 +0100
Geert Bevin wrote:
>
> In fact I've dropped the scrolled window and created a table with the
> clist and 2 scrollbars that share the same adjustments. I think that the
> procedure below also has to work with the scrolled window.
> I'm setting doing gtk_widget_set_usize() on the containing window before
> adding the clist and after gtk_window_set_wmclass() and
> gtk_window_set_default_size(). The clist doesn't resize the window
> anymore. If I recall correctly I did try by setting it on the clist and
> that worked, but I set the size immediately after the creation of the
> widget.
>
> Hope this gets you a bit further.
>
> > > Do a gtk_widget_set_usize() on the window or the clist widget. Strangely
> > > this only needs to be done once (for example when you show the widget
> > > the first time).
> >
> > When I show the clist, it's empty. The user clicks on a button and the clist is
> > filled. Then I do column_autosize() of clist. The result is a window of 2037
> > pixels width. Then I set horizontal scroll policy to AUTOMATIC and set_usize()
> > (I'm tried this with the toplevel, the scrolled window and the clist) to 1280.
> > The scrolled window resizes itself to the minimum clist's width. Then I click
> > (only click) in the resize areas (provided by WM) of the toplevel window and the
> > scrolled window takes my set_usize() values (or aprox) ...
>
> --
> Geert Bevin - gbevin@thunderstorms.org
> Montenegrostraat 11 1060 Brussels
> BELGIUM 0477/302.599
> --------------------------------------
> >> Idealists have to communicate <<
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
Thanks, Geert.
But my case is a little more complicated because I dont want a big window with a
small clist into, nor a little window with a big clist, and I don't know the
width of the clist. This clist shows the contents of a table of a BD (the user
selects the table to query)...
Thanks, again,
- José Miguel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]