Hi Support,
I can, for example, custom handle the cmd.searchView.results.clear via my own IUIX_CmdHandler.
It seems I cannot do the same for cmd.search.start - even if I assign my handler to that command - the OnNotify is not fired when Search... button is clicked (in IPXV_SearchView).
Doing anything wrong, or?
-žarko
Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear SOLVED
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Paul - PDF-XChange, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - Tracker, 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: 1424
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 1424
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear
Hi Support,
I can, and am custom handling cmd.search.start/stop button click via my IUIX_ObjImpl for "btn.startStop" - so this part is solved.
Still, confused why cmd.search.start is ignored within my IUIX_CmdHandler implementation?
-žarko
I can, and am custom handling cmd.search.start/stop button click via my IUIX_ObjImpl for "btn.startStop" - so this part is solved.
Still, confused why cmd.search.start is ignored within my IUIX_CmdHandler implementation?
-žarko
- Vasyl - PDF-XChange
- Site Admin
- Posts: 2426
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear
btn.startStop - is just a control, a simple button on the form. Why should it send the same notification in the same way as when you click the menu/toolbar item (cmd.search.start)? Items on toolbars/menus and buttons on forms are too different UI-substances to have identical notification-mechanism.
Items on toolbars/menus - call the IUIX_CmdHandler::OnNotify callback
Buttons (and other controls) send the e_Notify to Ctl.NotifyTarget (by default - it is the parent form). And with e_Notify, it sends the nParam1, which points to the UIX_NotifyInfo structure. Where the UIX_NotifyInfo.nCode contains value from UIX_NotifyCodes enum.
Items on toolbars/menus - call the IUIX_CmdHandler::OnNotify callback
Buttons (and other controls) send the e_Notify to Ctl.NotifyTarget (by default - it is the parent form). And with e_Notify, it sends the nParam1, which points to the UIX_NotifyInfo structure. Where the UIX_NotifyInfo.nCode contains value from UIX_NotifyCodes enum.
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: 1424
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear
Hi Vasyl,
Thanks.
So, "btn.startStop" in SearchView is not associated with that command.
What toolbar button/menu item does execute that command?
-zarko
Thanks.
So, "btn.startStop" in SearchView is not associated with that command.
What toolbar button/menu item does execute that command?
-zarko
- Vasyl - PDF-XChange
- Site Admin
- Posts: 2426
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear
cmd.search.start - isn't present on toolbars/menus. But using customize you may assign shortcut to it and/or put it on any toobar.
cmd.searchView.results.clear is used inside the Search pane: in context menu of the window with search results and in the dropdown menu of the Options button.
cmd.searchView.results.clear is used inside the Search pane: in context menu of the window with search results and in the dropdown menu of the Options button.
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: 1424
- Joined: Thu Sep 05, 2019 12:35 pm
- Stefan - PDF-XChange
- Site Admin
- Posts: 19285
- Joined: Mon Jan 12, 2009 8:07 am
- Contact: