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....


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 enable or disable 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;
pdEdit = $0100;
pdExtClip = $0200;
pdSelAll = $0400;
pdAllCmds = $FFFFFFFF;

In order to enable, or disable a specific entry of the menu, these constants can be used 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 for downloading the code): interpol3d

Last Update: 2012-Oct-20