[9798] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: GtkCList question

daemon@ATHENA.MIT.EDU (Hajba Szilard)
Tue Nov 3 12:03:47 1998

Date: Tue, 3 Nov 1998 17:27:27 +0100 (CET)
From: Hajba Szilard <szilu@zsuzska.rulez.org>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

> 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.

My data will absolutely fit on the screen, because my CList has only
constant number of rows. I will do scrolling myself with
gtk_clist_set_text(). It's not a nice solution i know, but i have no other
idea. I can't load >10000 records into a CList. I think, GTK should
support this sort of lists (lists with a callback function to access
databases), but I don't have enough time to write it now.

bye
	$zilu

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post