c - GTK: Infinite lazy list of widgets -



c - GTK: Infinite lazy list of widgets -

i need display virtually infinite scrollabe list of interactive widgets , add/remove them necessary when new info added or user scrolls uncached area.

a treeview (as asked here) no option, because, need total widgets items (composed of standard widgets multiple actions etc, cellrenderer isn't this)

worse, don't know widgets' height in advance (not much variance though), using vbox might cause jumpiness.

using scrollbar should still sense if list finite (i.e. updated after scrolling has finished scrollbutton doesn't jump away mouse), , when resizing window , layout of windows updated, scroll position shouldn't alter much (the focused widget should remain is, unless of course of study focused widget scrolled away…).

what's best way this? maybe library sends me signals when new widget needs added?

or listview coerced in not-too-nasty way? (i.e. draw on offscreen buffer, re-create cell using cellrenderer, relay mouse/keyboard events actual widget?)

if infinity list, should not seek accomplish scrollbar - meant finite lists.

my suggestion utilize overlay 2 buttons

+------------+ | arrow | +------------+ | item n | | item n+1 | | item n+2 | +------------+ | downwards arrow | +------------+

for list between buttons, have implement custom container widget yourself. suggest buffer n (>=2) widgets/items in each direction in advance.

not related custom containers, custom widgets - starting point

http://zetcode.com/tutorials/cairographicstutorial/customgtkwidget/

http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28

http://old.nabble.com/custom-container-%2b-child-type-with-interface-td26863728.html

c gtk vala

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -