More Validator oddities

Bob McCown rmccown at insors.com
Mon Apr 2 08:25:05 PDT 2007


Howdy folks
  First Id like to thank everyone that has helped me get my valitors working. 
I'm having another problem with them now.

  I have several text boxes in a tabbed notebook.  The frame that holds the 
notebook pages has the wxWS_EX_VALIDATE_RECURSIVELY extra style set.

  Now, the validators work when I'm typing in, they limit what I can input. 
But, if I paste something in, the validator doesnt fire, it allows the paste to 
happen.

  So, I figured id have to catch the wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING event 
in the EVT_NOTEBOOK_PAGE_CHANGING event, and call Validate() on the frame. 
Validate does indeed get called, but it ALWAYS returns true, even if the text 
in the text box is 'invalid'.

  Any ideas?

Thanks
-=Bob




More information about the wx-users mailing list