Hi,
I encapsulated the Editor in an own control.
Two of these controls are placed nearby in my application.
On top of each control a have a button for selecting an image that will be copied to the clipboard an then the targeted editor will use the Paste command to get the grafic from the clipboard.
This works fine if there is just one editor available.
If I have two editor-controls, allways the editor gets the clipboard data, that has the focus. In the code I see, that the "left" editor ist used in code, but the "right" editor gets the graphic.
Example
MyPDFControl
1.Paste() gets called,
but
MyPDFControl
2 shows the result
Here's the Paste()-Method of the control:
Code: Select all
public AxPDFXEdit.AxPXV_Control Editor;
public void Paste() {
Editor.Focus();
var doc = Editor.Doc;
doc.ActiveView.PagesView.Obj.SetInputFocus(true);
Editor.Inst.ExecUICmd("cmd.paste");
}
I have no knowledge about the MainFrm-index you used to differ between the editors.
Best regards
cew