Previous Topic

Next Topic

Book Contents

Book Index

Where to used a menu - the MenuFlags

The MenuFlags sub element of the NotesMenu-element determine where a menu should show and when to show it. Notes Menu Launcher is to a certain degree sensible to the user operation context, and allows the menus to show only if certain conditions are met.

For example, it's easy to tell Notes Menu Launcher not to show the menus in anything else but an open document in edit-mode. If the document is in read-mode, or the user is operating in a Notes view, the menu won't be activiated.

Note: The prefixes you see in all the menu flags has this meaning:
NAM - Notes Addin Menu
NCM - Notes Context Menu

The MenuFlags for Notes Addin Menus are:

MenuFlag

Description

NAM_IN_DESK

Activate the menu when the user is at the Workplace or homepage. The user hasn't moved into a specific database right yet.

If you have a traditional workplace which show for example your Inbox and Calendar, Notes Menu Launcher is still able to determine the active document beneath the cursor.

Document selections are not supported a this level

NAM_IN_VIEW

Activate the menu when the user is in a NotesView

NAM_IN_DOC_READONLY

Activate the menu when the user is in a document, and the document is in read-mode

NAM_IN_DOC_READWRITE

Activate the menu when the user is in a document, and the document is in edit-mode

NAM_IN_FIELD_TEXT

Activate the menu when the user is in an edit-mode document, and the cursor is placed in a text-field. Note, you must also specify NAM_IN_DOC_READWRITE in order to get this flag to work

NAM_IN_FIELD_NUMBER

Same as for NAM_IN_FIELD_TEXT, but for field type Number

NAM_IN_FIELD_TIMEDATE

Same as for NAM_IN_FIELD_TEXT, but for field type Time/date

NAM_IN_FIELD_RICHTEXT

Same as for NAM_IN_FIELD_TEXT, but for field type Richtext

NAM_IN_FIELD_READERS

Same as for NAM_IN_FIELD_TEXT, but for field type Readers

NAM_IN_FIELD_AUTHORS

Same as for NAM_IN_FIELD_TEXT, but for field type Authors

NAM_IN_FIELD_NAMES

Same as for NAM_IN_FIELD_TEXT, but for field type Names

NAM_IN_FIELD_KEYWORDS

Same as for NAM_IN_FIELD_TEXT, but for field type Dialog List

NAM_IN_FIELD_SECTION

Same as for NAM_IN_FIELD_TEXT, but for sections

The MenuFlags for Notes Context Menus are;

MenuFlag

Description

NCM_IN_VIEW

Show the context menu if the user is in a view

NCM_IN_DOC

Show the context menu if the user is in a document. It can't - at the display moment - tell the difference between read- and edit mode.

As you see, you have considerable better control over Notes Addin Menus than Notes Context Menus!

See Also

NotesMenu element - one for each menu