Nifty feature request |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 25 May 2007 at 3:06am |
Hi, CXTMaskEdit is indeed useful, but most of the time I find the filtering options inadequate. The obvious evolution of such a control is filtering using Regular Expressions. Implementing this should be quite straight-forward since a regex engine is already part of C++0x. That is, using Boost (http://www.boost.org) you get all what you need.
Of course, any dependencies on the Boost library are not desirable until it is indeed incorporated into C++, so a good solution would be something like this:
#ifdef XTP_USE_BOOSTLIB
class CXTPRegexEdit
{
...
BOOL SetExpression(LPCTSTR szRegex);
};
#endif
Have a look at http://www.codeproject.com/editctrl/FilterEdit.asp for inspiration.
I really think such a control has potential.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |