Re: flickering problem



Christophe Gonzales ha scritto lo scorso 16/01/2008 19:14:
> Dear all,
> 
> I am currently writing a widget for displaying 2-dimensional matrices.
> As they can be quite big (say, thousands of columns and tens of rows), I
> do not want to create a gtkScrolledWindow containing a gtkTable with one
> gtkEntry per element in the matrix. The solution I use currently is to
> put a gtkTable into a gtkViewport that I control myself and I allocate
> into the gtkTable just enough gtkEntries for the viewport to be
> displayed properly. Upon moving scrollbars, say to the right, I move the
> viewport accordingly and when the leftmost column of the gtkTable
> becomes invisible, I copy the contents of each gtkEntry into its left
> neighbor, so that the leftmost column of the gtkTable becomes again the
> first one visible, and I change the adjustments of the viewport so that
> the visible area is that which shall be visible.
> 
> The process works fine except that it is flickering. 

[...]

maybe you'd better use a treeview for this.



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