Re: Rendering Problem



On Wed, Apr 12, 2006 at 02:14:05PM +0530, Sailaxmi korada  wrote:

  I'm facing rendering problem with List store.

GtkListStore store is the model.  It does not render
anything.

GtkTreeView is the view, i.e. the thing that displays
something.  Its columns are completely unrelated to the
model columns -- until you explicitly relate them with cell
data function or column-renderer attributes association.

I've 3 columns.

 

1.    Name
2.    Value
3.    Hex representation of the value

 

The value shall be displayed as binary buttons, that I'm able to do, but I
want to suppress the display of integer value. Also the radio buttons should
appear between Name and Hex Value. Right now, the rendering is like this

 

Name Value(in interger) Hex 16binary buttons.

The columns appear in the order you appended them into the
view (and if you use gtk_tree_view_insert_column(), they
appear in the positions you insterted them).  Is there
something that prevents you from packing the columns in the
order you need?

I Don't want to display the value in integer and buttons should be in the
middle.

The tree view displays columns you explicitly created and
added there.  Is there something that prevents you from not
creating the columns you do not want to display?

Also whenever I'm clicking on refresh, the store is getting
refreshed, but previous set of buttons are not getting erased, new ones are
appended to this. How can I correct this problem

You probably do not update the rows but append new rows
instead.

Yeti


--
That's enough.



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