News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

validator field in wxSmith

Started by eranon, August 13, 2012, 01:12:09 PM

Previous topic - Next topic

eranon

Hello,

I've seen there's a new field in the control properties shown by wxSmith : validator. The changelog says it's to allow to indicate a no-default wxValidator... But what's the syntax to fill-in this field.

Should I enter the entire wxValidator declaration as I would done manually in code, like :

wxTextValidator(wxFILTER_ALPHA, &m_string)

or is there a special, simplified, syntax here (for example, just indicate the parameters w/o wxTextValidator() itself)?

--
EDIT : OK, it takes full call (tried from field and seen in code)
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]