TX Text Control ActiveX

ContextMenuOpening Event

Event

Occurs before a built-in context menu is opened.

Introduced: 19.0.

Syntax

ContextMenuOpening(DocumentLocation, Cancel)

Parameters

ParameterDescription
DocumentLocationSpecifies the part of the document for which the menu is opened. It can be one or more of the following values:
CancelWhen this parameter is set to TRUE, processing is aborted and no context menu is opened. It can be used to display an own menu.

DocumentLocation

ValueDescription
&H1The menu context is a text selection.
&H2The menu context is the text input position.
&H4The menu context is the top page margin which contains a header.
&H8The menu context is the top page margin which contains no header.
&H10The menu context is the bottom page margin which contains a footer.
&H20The menu context is the bottom page margin which contains no footer.
&H40The menu context is the top or the bottom page margin.
&H80The menu context is a pagenumber field.
&H100The menu context is a selected frame (text frame, image, or OLE object).
&H200The menu context is a text selection or a text input position in a table.
&H400The menu context is a text selection or a text input position in a marked text field.

Data Types

NameData type
DocumentLocationInteger
CancelBoolean

See Also