Need a way to clear the "Find" text box

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

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Need a way to clear the "Find" text box

Post by docu-track99 »

Hi Tracker,

Can you please provide us a way to clear the "Find" text box of the tracker previewer programmatically. Below is the code we us to find text inside the pdf. We just need a way to clear it out after.

Dim oDataOut As Object = 0
Dim oDataIn(1) As String

oDataIn(0) = "Find"
oDataIn(1) = sSearchString
tpdf1.DoVerb("", "ExecuteCommand", oDataIn, oDataOut, 0)


Any help will be appreciated.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Need a way to clear the "Find" text box

Post by Tracker Supp-Stefan »

Hello docu-track99,

Passed this question to the appropriate developer, but he is in our Canadian office, so the reply will be posted here a bit later.

Regards,
Stefan
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Need a way to clear the "Find" text box

Post by Vasyl-Tracker Dev Team »

Hi, docu-track99.

Use special command for it:

Code: Select all

CComVariant val(36341L); // "Clear Find List"
m_spView->DoVerb(NULL, ATL::CComBSTR(L"ExecuteCommand"), val, NULL, 0);
HTH
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply