virtual HyperTreeList

Hi,
I've tried to create virtual HyperTreeList - using
wx.lib.mixins.VirtualTree. There is a small problem with 2 method
calls:
GetItemImage and SetItemImage - the problem is that VirtualTree can
pass column parameter = -1 (result of VirtualTree.OnGetItemImage),
which crashes GetItemImage/SetItemImage methods in HyperTreeList. I
think it would be nice to fix these methods in HyperTreeList:
GetItemImage - to return _NO_IMAGE if column <0
SetItemImage - do nothing

Hi,

2009/10/6 Uhzzre:

Hi,
I've tried to create virtual HyperTreeList - using
wx.lib.mixins.VirtualTree. There is a small problem with 2 method
calls:
GetItemImage and SetItemImage - the problem is that VirtualTree can
pass column parameter = -1 (result of VirtualTree.OnGetItemImage),
which crashes GetItemImage/SetItemImage methods in HyperTreeList. I
think it would be nice to fix these methods in HyperTreeList:
GetItemImage - to return _NO_IMAGE if column <0
SetItemImage - do nothing

I have never used VirtualTree, so I am not sure what it does with
HyperTreeList. However, I have fixed HyperTreeList in SVN, please let
me know if it works.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/