[9791] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: GtkCList question
daemon@ATHENA.MIT.EDU (Jeff Garzik)
Tue Nov 3 10:25:28 1998
To: gtk-list@redhat.com
Date: Tue, 3 Nov 1998 10:23:04 -0500 (EST)
Reply-To: jgarzik@pobox.com
In-Reply-To: <Pine.LNX.3.96.981103155353.7249A-100000@server.arrabonet.gyor.hu> from "Hajba Szilard" at Nov 3, 98 03:55:37 pm
From: Jeff Garzik <jgarzik@pobox.com>
Resent-From: gtk-list@redhat.com
Hajba Szilard wrote:
> I'm developing an Information System Development Kit and I need a special
> list widget for database browsing. I made it using GtkCList with a
> constant number of rows, but I have a problem. My CList doesn't request
> enough space. I want the CList to request all the space that required to
> display the whole table. The problem is the CList has an internal scrolled
> window in it and I couldn't turn it off.
> Could anyone tell me how to solve it?
Typically, you need to calculate the size of each data row yourself,
based on the pixel height of the font and any padding added above and
below each row's text. I think you can get this out of GtkStyle.
With regards to turning off scroll, Gtk+ doesn't provide a "SCROLL_NONE"
policy I don't think, though I wish it did. :) Turning off scroll is a
bad idea anyway, unless your data absolutely, positively will fit on a
single screen -- even if the user is running 640x480.
Jeff
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null