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

TdxBarItemControl.CanDestroyOnClick Method

Specifies whether a parent bar control loses focus when a user clicks the item control.

#Declaration

Delphi
function CanDestroyOnClick: Boolean; virtual;

#Returns

Type
Boolean

#Remarks

Determines whether a bar control loses focus after a user clicks an item control. For instance, after a user clicks a button on a toolbar, the toolbar loses focus, but if a user clicks an edit control, the toolbar will stay focused until the user leaves the edit control. By default, the CanDestroyOnClick method returns True, so the item control loses focus after mouse click events.

Class descendents can override this method to provide their own functionality.

See Also