Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear  SOLVED

PDF-XChange Editor SDK for Developers

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.
Post Reply
zarkogajic
User
Posts: 1424
Joined: Thu Sep 05, 2019 12:35 pm

Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear

Post by zarkogajic »

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
zarkogajic
User
Posts: 1424
Joined: Thu Sep 05, 2019 12:35 pm

Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear

Post by zarkogajic »

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
User avatar
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

Post by Vasyl - PDF-XChange »

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.
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.
zarkogajic
User
Posts: 1424
Joined: Thu Sep 05, 2019 12:35 pm

Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear

Post by zarkogajic »

Hi Vasyl,

Thanks.

So, "btn.startStop" in SearchView is not associated with that command.

What toolbar button/menu item does execute that command?

-zarko
User avatar
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

Post by Vasyl - PDF-XChange »

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.
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.
zarkogajic
User
Posts: 1424
Joined: Thu Sep 05, 2019 12:35 pm

Re: Custom handling cmd.search.start vs (e.g.) cmd.searchView.results.clear  SOLVED

Post by zarkogajic »

Hi Vasyl,

Thanks :)

Post Reply