|XP is just a number|
Re: wxPerl virtual list control not calling OnGetItemText?by jmlynesjr (Friar)
|on Mar 14, 2013 at 02:10 UTC||Need Help??|
I haven't played with a ListCtrl yet, but from my reading, to use a Virtual List Control you can't use ListCtrl directly. You have to subclass ListCtrl into a derived class like MyListCtrl. The derived class will include your OnGetItemText method which will be called instead of the default OnGetItemText method in ListCtrl which is happening now in your test code. Clear as mud yet?
Also wxLC_VIRTUAL can only be used with wxLC_REPORT so your MyListCtrl->new call has to include wxLC_VIRTUAL | wxLC_REPORT. I'm not sure what the 32 does that's in your code.
Example code from wxPerl Demo:
Remember that there is code in the wxPerl Demo example that you won't need. It's just there to support the structure of the demo.
There's never enough time to do it right, but always enough time to do it over...