Code: Select all
OleControlSite iControlSite = new OleControlSiteEx (frame, SWT.NONE, "PDFXEdit.PXV_Control.1");
iControlSite.doVerb (OLE.OLEIVERB_SHOW);
iControlSite.doVerb (OLE.OLEIVERB_UIACTIVATE);
IPXV_Control iCtrl = new IPXV_Control (iControlSite.getPointerToUnknown ());
IPXV_Inst iInst = iCtrl.Inst ();
PDFXChangeEventDispatcher iEventDispatcher = new PDFXChangeEventDispatcher (iControlSite, iCtrl);
Code: Select all
iMausActionListener.listenTo (new int [] {MouseAction.WM_LBUTTONDOWN, MouseAction.WM_RBUTTONDOWN});
iMausActionListener.registerMouseAction (iMausAction);
PDFXChangeWrapper. registerListener (iMausActionListener, Arrays.asList (new String [] {IPDFXChangeConst.EVENT_MOUSEACTION}));
If I now click with the mouse in IPXV_Control instances A, I also get a click event for IPXV_Control instances B.
According to the Debugger all created controls are independent instances.
The only exception is the peer of the pointers for iCtrl.Inst(). This value is the same for both IPXV_Control instances.
If I understood the answers in the topic viewtopic.php?f=66&t=27346 correctly,
at the moment it is not possible to create several independent sources of the IPXV_Inst-Object.
Can this be the reason for the event-problem and if so, how do I solve the problem?
If not, what can be the reason for the double events?