Re: GtkTreeView, database and load data on demand

From: Date: Wed, 25 Nov 2009 05:41:51 +0000
Subject: Re: GtkTreeView, database and load data on demand
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8438@lists.php.net to get a copy of this message
Hello Alex, > I try to program a class to view big database tables with > GtkTreeView simular to the data-aware components in Delphi, Basic, > etc, which loads only the data from the DB what it has to view, but > it seems difficult get scrollbar positions, or the number of the > selected row. > > Has someone a hint for me how to get rid of this? Due to the MVC-structure of Gtk2's components, you do not need any of the data you described. Just implement your own model class and attach it to the tree view. The right methods in your model class will get called, allowing you to fetch the needed data. -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

Attachment: [application/pgp-signature] signature.asc
« previous php.gtk.general (#8438) next »