Skip to main content

TdxSpreadSheetPageControlContextPopupEvent Type

The procedural type of the caption bar popup menu display event.

Declaration

TdxSpreadSheetPageControlContextPopupEvent = procedure(ASpreadSheet: TdxCustomSpreadSheet; const P: TPoint; APopupMenu: TPopupMenu; var AHandled: Boolean) of object;

Parameters

Name Type
ASpreadSheet TdxCustomSpreadSheet
P TPoint
APopupMenu TPopupMenu
AHandled Boolean

Remarks

Use the ASpreadSheet parameter to access the Spreadsheet or Report Designer control that raised a TdxSpreadSheetPageControlContextPopupEvent event. To access the control’s class-specific members, cast ASpreadSheet to the TdxSpreadSheet or TdxSpreadSheetReportDesigner class.

The P parameter returns the current mouse pointer position.

The APopupMenu parameter provides access to the built-in popup menu that is about to appear. Use the parameter to customize the list of available menu items.

Assign True to the AHandled parameter to disable the built-in popup menu. This is useful if you need to show the menu only under certain conditions or use a custom popup menu instead.

A spreadsheet control’s OnPageControlContextPopup event references the TdxSpreadSheetPageControlContextPopupEvent procedural type.

See Also