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
Select First Result Snippet By Default
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Select First Result Snippet By Default
Try to execute the following UI-command some time after you've started searching:
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: - wait for new build....
HTH.
Code: Select all
pdfViewer.DoVerb("", "ExecuteCommand", "GoToNextSearchOccur", NULL, PXCVA_Sync);
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);
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- Site Admin
- Posts: 19883
- Joined: Mon Jan 12, 2009 8:07 am
Re: Select First Result Snippet By Default
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
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
-
- Site Admin
- Posts: 19883
- Joined: Mon Jan 12, 2009 8:07 am
Re: Select First Result Snippet By Default
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
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