[wx-dev] wxDataViewCtrl Tree API
Robin Dunn
robin at alldunn.com
Wed Jun 6 16:17:57 PDT 2007
Robert Roebling wrote:
> Robin Dunn:
>> Bo Yang wrote:
>>
>>> Yes, there is no relation between collapsing/expanding and ID. ID is
>>> just a way to exchange data between Model and view, just like the row
>>> number, the pinter or the GtkTreeIter and etc.
>> I haven't read the other new messages in this thread yet, so I don't
>> know if anybody else has covered this or not, but I thought I would jump
>> in here and say that I like the concept of an ID object like we have
>> currently in wxTreeCtrl. It can be an opaque object that internally
>> does what ever is needed to identify items for each platform. In fact
>> some newbies get confused by the fact that wxListCtrl doesn't use an
>> opaque ID object like this but uses the rows, which can change by
>> sorting and insertions/deletions. If there is a way to have an ID
>> object that always refers to the same item, even if it moves around,
>> then I think that will help simplify some use cases for some people.
>
> This ID object is what I'd like to have as the wxDataViewIter (or
> any other name for it). This is exactly what I wrote in my last mail
> about wxDataViewIter being persistent.
Yep, I came to that conclusion after reading the rest of the messages.
Thanks.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list