[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'EditBtn' (#lcl)

TFilterItemEvent

Specifies an event handler used to filter data items in TCustomControlFilterEdit.

Declaration

Source position: editbtn.pas line 215

type TFilterItemEvent = function(

  ItemData: Pointer;

  out Done: Boolean

):Boolean of object;

Arguments

ItemData

  

Pointer to the data for the item examined in the event handler.

Done

  

Indicates if additional filtering is needed on the title of the item data.

Function result

True if the item matches the filter implemented in the event handler.

Description

TFilterItemEvent is a Boolean object function type that specifies an event handler used to filter data items in TCustomControlFilterEdit. The return value is True if an item matches a filter condition implemented in the event handler. Done can be updated to indicate if the item requires additional filtering on the title string in the data item; when it contains True, no additional filtering is needed.

TFilterItemEvent is the type used for the OnFilterItem event handler in TCustomControlFilterEdit.

See also

TCustomControlFilterEdit.OnFilterItem

  

An event handler to give extra conditions for filtering, in addition to the default behavior. Returns True if the passes the filter.

TCustomControlFilterEdit.OnFilterItemEx

  

Event handler signalled to filter data in the control using its caption or item data.

TFilterItemExEvent

  

Specifies an event handler used to filter data items in TCustomControlFilterEdit.


Version 3.2 Generated 2024-02-25 Home