Virtual table using model?



Hello there!
I wish to port a Win32 app to Linux using GTK+ as GUI lib.

In GTK is there a support for "virtual" tables (lists) that
get their data from a model rather than storing it themselves
(like gtk_clist_append() or gtk_clist_set_text() do).
What I need is a callback that is called at display time to
ask for the text (or whatever) to show.
A Win32::ListView can have the LVS_OWNERDATA style which
causes a LVN_GETDISPINFO notification message to be sent
for every cell currently visible.

Table models are useful if there are large amounts of data
that you don't want to be copied into the visual control
(database result sets for example) or if you want to create
the data at display time (calculations etc.).

Thanks in advance

Manuel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]