Skip to main content

TdxCustomTileControl.OnActionBarsShow Event

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

Declaration

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.

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