[Mac, 2.8.2] text validtor problems

Vadim Zeitlin vadim at wxwidgets.org
Wed Jun 20 14:34:46 PDT 2007


On Wed, 20 Jun 2007 17:17:54 +0200 Yaron Tadmor <YaronT at HumanEyes.com> wrote:

YT> It does filter the key events, but it does NOT filter paste from the
YT> clipboard. This is quite strange IMHO. Is this intentional or a bug?

 I don't think this is intentional. Unfortunately I don't know how to
generate wxEVT_COMMAND_TEXT_PASTE event under Mac (i.e. how to catch pastes
into the native controls there) so even if we updated wxValidator to catch
this event, it wouldn't help on this platform. It would help for the others
though so if anyone has a spare moment to do it, it would be great.

YT> Also, is there a way to cause validation on focus lose of the text
YT> control?

 You can do it yourself in EVT_CHILD_FOCUS handler, of course.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list