Hello,
Does it's possible like in TMemo to have a popup menu on the right click with Copy, Cut, and Paste ?
Thanks,
Robin
Right click Popup
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Right click Popup
TRichView does not have a default menu to show when PopupMenu property is not assigned.
Create this menu and assign it yourself.
You have the following options:
1) If you use RichViewActions, use TRVAPopupMenu. When linked to ActionList containing RichViewActions, it adds necessary commands automatically.
2) You can use a popup menu containing the standard actions. TRichViewEdit supports: TEditCut, TEditPaste, TEditDelete, TEditUndo, TEditCopy, TEditSelectAll.
3) You can implement commands in the menu yourself.
Create this menu and assign it yourself.
You have the following options:
1) If you use RichViewActions, use TRVAPopupMenu. When linked to ActionList containing RichViewActions, it adds necessary commands automatically.
2) You can use a popup menu containing the standard actions. TRichViewEdit supports: TEditCut, TEditPaste, TEditDelete, TEditUndo, TEditCopy, TEditSelectAll.
3) You can implement commands in the menu yourself.