if i understand you correctly wxLC_REPORT|wxLC_VIRTUAL wouln't help me if my data structure has nothing to do with the visible data.
Am 28.08.2012 15:17, schrieb Mark Dootson: > Hi, > > SetItemPtrData, like SetItemData, just takes an integer value. The only > difference is in the range of values it can take. > > On 64 bit systems SetItemPtrData can take values that represent pointers > (which are 64 bit) whilst SetItemData is limited to whatever the range for > 'long' is on the system. > > It is client data so it can represent anything you wish, provided of course > that what you wish to store can be represented by an integer. > > If you want to store Perl references then that is not available in > Wx::ListCtrl. You need a Perl wrapper. > > You may wish to take a look at Wx::Perl::ListCtrl that allows you to store > Perl data structures with the list items. > > Alternatively, a virtual Wx::ListCtrl ( style wxLC_REPORT|wxLC_VIRTUAL ) > offers you the capability for complete control over the data model that > provides the information for display in the wxListCtrl. > > Hope it helps. > > Mark > > > On 28/08/2012 12:33, herbert breunung wrote: >> thanks a lot, >> >> to not misunderstand: >> >> SetItemPtrData takes now any ref? >> >> best >> herbert >> >> Am 28.08.2012 05:10, schrieb Mark Dootson: >>> Hi, >>> >>> Changes are in SVN so SetItemPtrData will be available in next release. >>> I applied your idea for SetItemData handling Unsigned values of any >>> supported >>> length (not just longs). >>> >>> I have not changed the related method wxListItem::SetData because I could >>> not >>> think of a reliable way of wrapping the two C++ overloaded methods >>> >>> SetData( long data ) >>> SetData( void *data ) >>> >>> So, if you want to store an unsigned value larger than 'long' can hold then >>> wxListCtrl::SetItemPtrData will be your only option. >>> >>> Both >>> wxListCtrl::GetItemData >>> and >>> wxListItem::GetData >>> >>> should correctly return any value what ever way it has been set. >>> >>> Regards >>> >>> Mark >>> >>> >>> >>> On 27/08/2012 20:52, herbert breunung wrote: >>>> dear mark, >>>> >>>> a friend of mine wanted to assiciate with an listitem a ref to data which >>>> is >>>> not the intended way in wxwidgets, good. But SetItemPtrData is not wrapped. >>>> i would like to see that in wxperl SetItemData can handle both and can >>>> foreward to both as needed and thus simplify the api >>>> >>>> thanks very much you were always very helpful >>>> >>>> PS outline of book is ready now >>> >>> >> > >