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

TdxSpreadSheetPageControlContextPopupEvent Type

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

#Declaration

Delphi
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