【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.13.12 Edit::SetContentFilter
Contents
Description
set user input restrict to some conditions,such as only allow uint/unsigned/double etc.
Syntax
BOOL SetContentFilter( int nFilter )
Parameters
- nFilter
- [input] int ID of input mask
- enum CONTENTFILTER
- {
- CF_NONE = 0, //no filter, can be text or numeric.
- CF_DOUBLE, //allow unsigned numeric only
- CF_INTEGER, //allow unsigned integer only
- CF_SIGNED_DOUBLE, //allow signed numeric only
- CF_SIGNED_INTEGER, //allow signed integer only
- CF_TYPE_MASK = 0x000F,
- CF_NO_LEADING_ZERO = 0x0010,
- CF_NO_EMPTY_VALUE = 0x0020,
- };
Return
if success then return ture, otherwise return false.
Examples
Remark
See Also
Header to Included
Control.h