Platoo DynFilter TDynFilterComboBox

Contents - Events - Methods - Properties

ComboBox filtercondition control for TDynFilter


Description
Filtercondition is taken from property Text or if Text matches to some item of Items, then value with same index from Values.


TDynFilterComboBox - Events

Contents - TDynFilterComboBox - Properties - Methods

OnFilterChange
Called after filtercondition is changed

Delphi declaration
property OnFilterChange: TNotifyEvent read FOnFilterChange write FOnFilterChange;
C++ declaration
__property Classes::TNotifyEvent OnFilterChange={ read=FOnFilterChange, write=FOnFilterChange }


TDynFilterComboBox - Methods

Contents - TDynFilterComboBox - Properties - Events

~TDynFilterComboBox
Destructor

C++ declaration
__fastcall virtual ~TDynFilterComboBox(void)

Change
Overrides the inherited method to catch possible filtercondition change

Delphi declaration
procedure Change;
C++ declaration
virtual void __fastcall Change(void)

Create
Delphi declaration
constructor Create(AOwner: TComponent);
Destroy
Delphi declaration
destructor Destroy;
KeyDown
Override n

Delphi declaration
procedure KeyDown(var Key: Word; Shift: TShiftState);
C++ declaration
virtual void __fastcall KeyDown(Word & Key, Classes::TShiftState Shift)

Description
Keys VK_DELETE or VK_BACK clear the Text value: clearing filtercondition.

Notification
Overrides the inherited method to respond to opRemove notifications on the linked DynFilter.

Delphi declaration
procedure Notification(AComponent: TComponent; Operation: TOperation);
C++ declaration
virtual void __fastcall Notification(Classes::TComponent *AComponent, Classes::TOperation Operation)

TDynFilterComboBox
Constructor

C++ declaration
__fastcall virtual TDynFilterComboBox(Classes::TComponent *AOwner)

UpdateFilter
Send all conditions to DynFilter

Delphi declaration
procedure UpdateFilter;
C++ declaration
void __fastcall UpdateFilter(void)

Description
Called automatically.


TDynFilterComboBox - Properties

Contents - TDynFilterComboBox - Methods - Events

CanSaveFilter
Save filterconditions, not used

Delphi declaration
property CanSaveFilter: Boolean read FCanSaveFilter write FCanSaveFilter default false;
C++ declaration
__property bool CanSaveFilter={ read=FCanSaveFilter, write=FCanSaveFilter, default=0 }

CaseInsensitive
Case-insensitive filtercondition

Delphi declaration
property CaseInsensitive: Boolean read FCaseInsensitive write SetCaseInsensitive default true;
C++ declaration
__property bool CaseInsensitive={ read=FCaseInsensitive, write=SetCaseInsensitive, default=1 }

CompareEmptyValue
Compare-to-empty value filtercondition

Delphi declaration
property CompareEmptyValue: Boolean read FCompareEmptyValue write SetCompareEmptyValue default false;
C++ declaration
__property bool CompareEmptyValue={ read=FCompareEmptyValue, write=SetCompareEmptyValue, default=0 }

CompareOrdValues
Compare ordinal value filtercondition

Delphi declaration
property CompareOrdValues: Boolean read FCompareOrdValues write SetCompareOrdValues default false;
C++ declaration
__property bool CompareOrdValues={ read=FCompareOrdValues, write=SetCompareOrdValues, default=0 }

DynFilter
Linked DynFilter

Delphi declaration
property DynFilter: TDynFilter read FDynFilter write SetDynFilter;
C++ declaration
__property Dynfilter::TDynFilter *DynFilter={ read=FDynFilter, write=SetDynFilter, nodefault }

FieldName
Filtered field name

Delphi declaration
property FieldName: string read GetFieldName write SetFieldName;
C++ declaration
__property System::AnsiString FieldName={ read=GetFieldName, write=SetFieldName, nodefault }

FilterOperation
Filter comparing operation type

Delphi declaration
property FilterOperation: TDynFilterOperation read FFilterOperation write SetFilterOperation default foEqual;
C++ declaration
__property Dynfilter::TDynFilterOperation FilterOperation={ read=FFilterOperation, write=SetFilterOperation, default=5 }

Values
Item's Values list

Delphi declaration
property Values: TStrings read FValues write SetValues;
C++ declaration
__property Classes::TStrings *Values={ read=FValues, write=SetValues, nodefault }

Description
Value are used instead of Text as filtercondition, if Text exists in Items, match with Items by index.