2.2.6.13.12 Edit::SetContentFilter


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

Edit::GetContentFilter

Header to Included

Control.h