Platoo DynFilter TDynFilterDBCombo

Contents - Events - Methods - Properties

Lookup-comboBox filtercondition control for TDynFilter


Description
Filtercondition is taken from KeyValue, rotated to string.

Values list from LookupDataSource.


TDynFilterDBCombo - Events

Contents - TDynFilterDBCombo - 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 }


TDynFilterDBCombo - Methods

Contents - TDynFilterDBCombo - Properties - Events

~TDynFilterDBCombo
Destructor

C++ declaration
__fastcall virtual ~TDynFilterDBCombo(void)

ClearFilter
Clearing KeyValue (empty filtervalue).

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

Click
Overridden to catch possible filtercondition change

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

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

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 KeyValue (empty filtervalue).

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)

TDynFilterDBCombo
Constructor

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

UpdateFilter
Send all conditions to DynFilter

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

Description
Called automatically .


TDynFilterDBCombo - Properties

Contents - TDynFilterDBCombo - 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 false;
C++ declaration
__property bool CaseInsensitive={ read=FCaseInsensitive, write=SetCaseInsensitive, default=0 }

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 true;
C++ declaration
__property bool CompareOrdValues={ read=FCompareOrdValues, write=SetCompareOrdValues, default=1 }

DataField
Overridden: setting value disabled

Delphi declaration
property DataField write SetNoDataField;
C++ declaration
__property DataField={ write=SetNoDataField }

DataSource
Overridden: setting value disabled

Delphi declaration
property DataSource write SetNoDataSource;
C++ declaration
__property DataSource={ write=SetNoDataSource }

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 }