Page 1 of 1

Validator for wxListCtrl

Posted: Mon Jun 25, 2007 12:14 pm
by ddv
Hello all wxMen and wxMomen 8)

I want to allow only some characters when I edit the labels in my list ctrl (with wxLC_EDITLABELS style).

It is easy to do this in text ctrl with wxTextvalidator, but how I am supposed to write a validator for the text ctrl included in the list ctrl ?

I try deriving from wxValidator and returning false in Validate(wxWindow *parent) method, just to see, but this method is never called.

Any idea ?