Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxOfficeSearchBoxDropDownMenuItemAddingEvent Type

The OnDropDownMenuItemAdding event’s procedural type.

#Declaration

Delphi
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