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
pFrom in e.operBeforeExecute / op.search ? What executed op.search? SOLVED
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
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.
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.
-
- User
- Posts: 1509
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 1509
- Joined: Thu Sep 05, 2019 12:35 pm
Re: pFrom in e.operBeforeExecute / op.search ? What executed op.search?
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
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
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: pFrom in e.operBeforeExecute / op.search ? What executed op.search?
For events e.operBeforeExecute/e.operExecuted - the pFrom always points to the IOperation that will_be/was executed.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 1509
- Joined: Thu Sep 05, 2019 12:35 pm
Re: pFrom in e.operBeforeExecute / op.search ? What executed op.search? SOLVED
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
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
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am