Select First Result Snippet By Default

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Daxston
User
Posts: 5
Joined: Mon Nov 07, 2011 11:45 pm

Select First Result Snippet By Default

Post by Daxston »

Hi,

After the view searches a directory, a list of snippets is displayed in the search pane. Is there a way I can automatically select the first result snippet in the viewer. I don't want the end user to see a blank viewer after a search is initiated/performed. Is there a property or some code I can run to do this?

Thanks,

Dax
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Select First Result Snippet By Default

Post by Vasyl - PDF-XChange »

Try to execute the following UI-command some time after you've started searching:

Code: Select all

pdfViewer.DoVerb("", "ExecuteCommand", "GoToNextSearchOccur", NULL, PXCVA_Sync);
Sorry - currently there is no notify-event for the search process...
But in the new build we can add a new simple feature to address your case (property) like:

Code: Select all

pdfViewer.SetProperty("Search.AutoSelectFirstRes", "true", 0);
- wait for new build....

HTH.
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.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: Select First Result Snippet By Default

Post by Stefan - PDF-XChange »

Hello Dax,

Our devs asked me to create the following ticket in our internal system:
#1326: Add "Search.AutoSelectFirstRes" property
So that this could be addressed and the new property added for the next build.

We will update this topic when the property is implemented, and when you can expect the new build.

Best,
Stefan
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: Select First Result Snippet By Default

Post by Stefan - PDF-XChange »

Hi Dax,

I just got a confirmation that the problem described here is fixed and the fix will be in the next build (expected around the middle of December).

Best,
Stefan