rvapopupmenu TRVAPopupMenu, TRVAPopupActionBar, TRVATBPopupMenu, TRVATBXPopupMenu, TRVASPTBXPopupMenu

Properties   Events

Top  Previous  Next

TRVAPopupMenu encapsulates the properties, methods, and events of a pop-up menu for TCustomRichViewEdit.

Unit RichViewActions, RVAPopupActionBar;

Syntax, if TNT Controls are not used:

TRVAPopupMenu = class(TPopupMenu, IRVAPopupMenu)

Syntax, if TNT Controls are used:

TRVAPopupMenu = class(TTntPopupMenu, IRVAPopupMenu)

Syntax:

TRVATBPopupMenu = class (TTBPopupMenu, IRVAPopupMenu)

TRVATBXPopupMenu = class (TTBXPopupMenu, IRVAPopupMenu)

TRVASPTBXPopupMenu = class (TSPTBXPopupMenu, IRVAPopupMenu)

TRVAPopupActionBar = class (TPopupActionBar, IRVAPopupMenu)

hmtoggle_arrow1Hierarchy

Description

Menus

There are several similar components representing pop-up menu:

TRVAPopupMenu is inherited from the standard TPopupMenu, or, if TNT Controls are used, from TTntPopupMenu.

TRVAPopupActionBar is inherited from TPopupActionBar, available for Delphi 2006 or newer, defined in RVAPopupActionBar unit.

TRVATBPopupMenu is available if Toolbar2000 is used.

TRVATBXPopupMenu is available if TBX is used.

TRVASPTBXPopupMenu is available if SpTBXLib is used.

Standard actions

This menu is automatically filled with RichViewActions from ActionList.

The following actions are always added (if available):

TrvActionCut

TrvActionCopy

TrvActionPaste

TrvActionFontEx

TrvActionParagraph

TrvActionParaList

The following action is added if an image or a break is at the position of the caret:

TrvActionItemProperties

The following actions are added if there is a table with multicell selection:

TrvActionTableInsertRowsAbove

TrvActionTableInsertRowsBelow

TrvActionTableInsertColLeft

TrvActionTableInsertColRight

The following actions are added if the table row(s)/column(s) are selected completely:

TrvActionTableDeleteRows

TrvActionTableDeleteCols

The following action is added if there is a table without edited cell:

TrvActionFillColor

The following action is added if there is a table with selection, and the selected cells can be merged:

TrvActionTableMergeCells

Othewise, the following action is added:

TrvActionTableSplitCells

The following action is added if the current item is a table:

TrvActionTableProperties

 

Live spelling

This menu supports live spelling. If Addict 3 or 4 is used, the live spelling commands appear automatically (suggestions for the current misspelled word, "Add to Dictionary" and "Ignore" commands). For other spellcheckers, you need to process the events:

OnLiveSpellAdd

OnLiveSpellGetSuggestions

OnLiveSpellIgnoreAll

 

Adding custom commands

This menu is recreated each time before it is displayed, before OnPopup event occur. All menu items are deleted and new items are added.

If you need adding another commands (or delete some existing commands), do it in OnPopup event.


RichViewActions © trichview.com