TdxSpreadSheetCustomHitTest.GetPopupMenuClass(TPoint) Method
Returns a reference to the class of the popup menu at the test point.
Declaration
function GetPopupMenuClass(const P: TPoint): TComponentClass;
Parameters
Name | Type |
---|---|
P | TPoint |
Returns
Type |
---|
TComponentClass |
Remarks
Call this function and pass a point as the P parameter to identify which type of the popup menu is available at this point. The GetPopupMenuClass function returns nil (in Delphi) or nullptr/NULL (in C++Builder) if no popup menu is available at the specified point.
Spreadsheet controls can show two built-in popup menu types:
- The context menu that a user can invoke by a right-click on a worksheet tab in the caption bar (the TdxSpreadSheetBuiltInPageControlTabPopupMenu class). A control raises the OnPageControlContextPopup event when this menu is about to appear.
- The context menu that a user can invoke by a right-click within the Table View worksheet area (the TdxSpreadSheetBuiltInTableViewPopupMenu class). The control raises the OnTableViewContextPopup event when this menu is about to appear. The available menu item list depends on a right-clicked worksheet element and its state.
The worksheet context menu has three main forms:
See Also