Multiple instances of RVAControlPanel / Copy paste issues

General TRichView support forum. Please post your questions here
Post Reply
krimsoniuss
Posts: 7
Joined: Thu Apr 26, 2018 2:14 pm

Multiple instances of RVAControlPanel / Copy paste issues

Post by krimsoniuss »

When I have 2 instances of TRichviewEdit with RVAControlPanel connected to Speedbuttons on the same frame copy and pasting will only work on one of the RichViewEdits?

Maikel

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

Re: Multiple instances of RVAControlPanel / Copy paste issues

Post by Sergey Tkachenko »

Several RVAControlPanels in the same applications are rarely needed. They are needed only if you need to apply different settings for different actions (for example, different UI language in different forms).
In other cases, I recommend using a single RVAControlPanel.

If you want a certain action to work with a certain editor, simply assign Action.Control := Editor. Similarly, assign Editor properties of combo boxes. RVAControlPanel is not necessary to specify the action's editor.

If you still want using several RVAControlPanel components, assign Action.ControlPanel := RVAControlPanel. If Action.ControlPanel = nil, the action uses the first created RVAControlPanel (which is not necessary on the same form/frame)

Post Reply