The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



PopupDMask


Unit:SDL_ntabed
Class: TNTabEd
Declaration: property PopupDMask: longint;

The property PopupDMask lets you configure the state of the popup menu of the data area. By setting the appropriate bit in PopupDMask you can hide or show a specific entry of the popup menu. The assignment of the mask bits are defined by the following constants:

pdMarkRange = $0001;
pdMarkColumn = $0002;
pdMarkRow = $0004;
pdUnMarkRange = $0008;
pdUnMarkAll = $0010;
pdClear = $0020;
pdCopy = $0040;
pdPaste = $0080;
pdExtClip = $0100;
pdEdit = $0200;
pdSelAll = $0400;
pdAllCmds = $FFFFFFFF;

In order to make a specific entry of the menu either visible or invisible, these constants can be logically combined to assemble the proper mask.

Example: The statement PopupDMask := pdAllCmds and not pdCopy and not pdPaste; disables the commands "Copy" and "Paste" of the popup menu.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): interpol3d



Last Update: 2023-Dec-13