Back to Devexpress

TcxCustomDropDownEdit.CanDropDown Method

vcl-cxdropdownedit-dot-tcxcustomdropdownedit.md

latest1.6 KB
Original Source

TcxCustomDropDownEdit.CanDropDown Method

Identifies if it is possible to invoke the drop-down window.

Declaration

delphi
function CanDropDown: Boolean; virtual;

Returns

TypeDescription
Boolean

True if the drop-down window open operation is available; otherwise, False.

|

Remarks

Call CanDropDown and CanHide functions to identify if drop-down open and close operations are available.

The Properties.OnInitPopup event occurs every time a user attempts to invoke the drop-down window. If the CanDropDown function returns True, the OnPopup event also occurs and the drop-down window opens.

Note

TcxCustomDropDownEdit class descendants override the CanDropDown function to implement editor-specific drop-down window display permissions. You can display the drop-down window only if the CanDropDown function returns True.

This CanDropDown function implementation always returns False.

See Also

TcxCustomDropDownEdit.DropDown Procedure

TcxCustomDropDownEdit.DroppedDown Property

TcxCustomDropDownEdit Class

TcxCustomDropDownEdit Members

cxDropDownEdit Unit