Skip to main content

TdxBarItemControl.CanDestroyOnClick Method

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

Declaration

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