title: Erlang wxWidgets how to use validators in custom Dialogs?
body: <p>I find a definition of call, like this in official Erlang wxWidgets documentation:</p>
  
  <pre><code>new(Parent, Id, Options::[Option]) -&gt; wxTextCtrl()
  
  Types:
  Parent = wxWindow:wxWindow()
  Id = integer()
  Option = {value, unicode:chardata()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | **{validator, wx:wx_object()**}
  </code></pre>
  
  <p>Anybody know, how to use validator?</p>