pFrom in e.operBeforeExecute / op.search ? What executed op.search?  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: Tracker Support, TrackerSupp-Daniel, Sean - Tracker, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
zarkogajic
User
Posts: 1413
Joined: Thu Sep 05, 2019 12:35 pm

pFrom in e.operBeforeExecute / op.search ? What executed op.search?

Post by zarkogajic »

Hi Support,

IEventHandler::OnEvent has the pFrom parameter (used with EnableEventListening for pxvControl).

When the event is "e.operBeforeExecute" and the IOperation is "op.search" -> what is "pFrom" ?

I'm trying to differentiate if the op.search operation was called by clicking on the Start button in IPXV_SearchView vs if the op.search was executed manually (from code). In both cases the pFrom value is the same (not sure what it is - hence the question).

So: how to know if op.search was executed via IPXV_SearchView's Start button or from code ?

-žarko
zarkogajic
User
Posts: 1413
Joined: Thu Sep 05, 2019 12:35 pm

Re: pFrom in e.operBeforeExecute / op.search ? What executed op.search?

Post by zarkogajic »

Hi Support,

Ok, so I'm having my IUIX_ObjImpl for btn.startStop and am storing the start/stop button clicked as my field - so I know when op_search is executed - is it done so via IPXV_SearchView.

Still, what is pFrom? Any better way to know what executed the op_search (from code, of document.Find dialog, or anything else ...)?

-žarko
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2409
Joined: Thu Jun 30, 2005 4:11 pm

Re: pFrom in e.operBeforeExecute / op.search ? What executed op.search?

Post by Vasyl-Tracker Dev Team »

For events e.operBeforeExecute/e.operExecuted - the pFrom always points to the IOperation that will_be/was executed.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1413
Joined: Thu Sep 05, 2019 12:35 pm

Re: pFrom in e.operBeforeExecute / op.search ? What executed op.search?  SOLVED

Post by zarkogajic »

Hi Vasyl,

Omg, a stupid question from my side - of course pFrom is the IOperation ...

p.s.
This is what happens when you do not see a tree from the forest :)

-žarko
Post Reply