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

TdxCustomTileControl.OnActionBarsShow Event

In This Article

Enables you to respond to showing action bars caused by specific actions and prohibit the change.

#Declaration

Delphi
property OnActionBarsShow: TdxTileControlActionBarVisibilityChangeEvent read; write;

#Remarks

The Sender parameter references the tile control.

The AReason parameter specifies what caused action bars to be displayed. Refer to the TdxTileControlActionBarVisibilityChangeReason type description to learn about the available parameter values.

Pass True as the AHandled parameter to prohibit showing action bars in response to the AReason action.

The following code example shows how to handle the OnActionBarsShow event to prohibit showing action bars by right-clicking a tile control while it displays a detail page.

Delphi
procedure <Form>.<TileControl>ActionBarsShow(Sender: TdxCustomTileControl; AReason: TdxTileControlActionBarVisibilityChangeReason; var AHandled: Boolean);
begin
  if ((AReason = abvcrMouseRightClick) and (Sender.ActiveDetail <> nil)) then
    AHandled := True;
end;

Handle the OnActionBarsShow event in combination with the OnActionBarsHide event to completely control switching the action bar visibility.

See Also