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

TdxSpreadSheetTableViewContextPopupEvent Type

The procedural type of the worksheet context menu display event.

#Declaration

Delphi
TdxSpreadSheetTableViewContextPopupEvent = procedure(Sender: TdxSpreadSheetTableView; const P: TPoint; APopupMenu: TPopupMenu; var AHandled: Boolean) of object;

#Parameters

Name Type
Sender TdxSpreadSheetTableView
P TPoint
APopupMenu TPopupMenu
AHandled Boolean

#Remarks

The Sender parameter provides access to the Table View worksheet that raised a TdxSpreadSheetTableViewContextPopupEvent event. This parameter is useful if you need to disable the context menu for certain worksheets.

The P parameter returns the current mouse pointer position that is useful if you need to invoke a custom popup menu.

The APopupMenu parameter provides access to the built-in popup menu that is about to appear. Use this parameter to customize the list of 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 OnTableViewContextPopup event references the TdxSpreadSheetTableViewContextPopupEvent procedural type.

See Also