Right click Popup

General TRichView support forum. Please post your questions here
Post Reply
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Right click Popup

Post by retwas »

Hello,

Does it's possible like in TMemo to have a popup menu on the right click with Copy, Cut, and Paste ?

Thanks,
Robin
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Right click Popup

Post by Sergey Tkachenko »

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.
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Re: Right click Popup

Post by retwas »

Thanks :)
Post Reply