[wx-dev] wxDataViewCtrl Tree API

Robin Dunn robin at alldunn.com
Wed Jun 6 16:25:04 PDT 2007


Vadim Zeitlin wrote:
> On Wed, 06 Jun 2007 20:25:20 +0200 Robert Roebling wrote:
> 
> RR> > If the column, which display the tree structure( as the first
> RR> > column in your example image), is not the first column, how
> RR> > do you deal with it?
> RR> 
> RR> We don't deal with it. The tree column (which actually is
> RR> no column at all) it to the left and on RTL environments
> RR> it is on the right.
> RR> 
> RR> > That I advice add such a column is for the purpose of making
> RR> > the user able to put such a column in any order.
> RR> 
> RR> We'll live without this feature.
> 
>  I would find such feature quite useful. E.g. the icons are often drawn
> before the items, so it might be nice to have the tree in the 2nd column.
> And if we must handle drawing the tree in the first or last column, why not
> in an arbitrary one?

Yes, it would be very useful to allow to have the tree in any column. 
Look at a typical mail/news reader for example.  They let you rearrange 
the columns to be in any order you like, and then when you go into a 
sort by message-thread mode they show the subject column in a tree tree 
structure.

BTW, wxTreeListCtrl allows the tree to be in any column.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list