Ed Leafe wrote:
On Oct 2, 2005, at 2:30 PM, Adi J. Sieker wrote:
I'm using the data field to store the record ID, so that when needed
I can select a specific item in the list control
using FindItemData (which is still a wx method).
I also just updated the ui.dTreeView.dNode with a Data Property so I
can do the same.
I don't know if this is the dabo way of doing things or not I didn't
find another way.
I'm going to mull this over, and Paul, I'd ask you to do the same.
I think I get the idea of giving each row an ID that's independent of
its position, since position can change, but if we do, I'd like to make
sure that it is consistent across all controls that manage rows of
data. It wouldn't necessarily have to involve the wxPython notion of
'item data', which is by definition an integer, but it should work the
same across all such controls.
I asked before, and I'll ask again: why can't dListControl be part of
dControlItemMixin? Then the notion of PositionValue, StringValue, and
KeyValue can apply. Would this limit the utility of dListControl too
much (I don't really know, because I've never used dListControl).
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev