Print Page | Close Window

Nifty feature request

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7234
Printed Date: 05 July 2025 at 9:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Nifty feature request
Posted By: znakeeye
Subject: Nifty feature request
Date 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 - 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 - http://www.codeproject.com/editctrl/FilterEdit.asp  for inspiration.
 
I really think such a control has potential.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net