Skip to main content

TdxOfficeSearchBoxDropDownMenuItemAddingEvent Type

The OnDropDownMenuItemAdding event’s procedural type.

Declaration

TdxOfficeSearchBoxDropDownMenuItemAddingEvent = procedure(Sender: TdxOfficeSearchBoxProperties; const ASearchText: string; ASourceItem: TObject; var AAllow: Boolean) of object;

Parameters

Name Type
Sender TdxOfficeSearchBoxProperties
ASearchText string
ASourceItem TObject
AAllow Boolean

Remarks

This event fires when the search box is about to add a new search result to its drop-down menu. The Sender parameter provides access to the control that raised the event, and the ASearchText parameter allows you to obtain the control’s EditValue property value. You can use the ASourceItem parameter to access a link to the bar item which is about to be added to the drop-down menu. To access the link’s type-specific members, cast the ASourceItem value to the TdxBarItemLink type. Set the AAllow parameter to True or False to allow or forbid the search box to add ASourceItem to the menu.

See Also