Validator for wxListCtrl

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ddv
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Dec 18, 2006 4:23 pm

Validator for wxListCtrl

Post 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 ?
Post Reply