show/hide search panel programmatically

PDF-XChange Editor SDK for Developers

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

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
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

show/hide search panel programmatically

Post by chavas »

Hi,

How do I hide search panel programmatically? If I use Search once and then close the editor, it remembers the setting and the next time I open the editor, it comes up with the search panel. I do not want search panel to show by default. How do I hide that?
See the attached screenshot.

Rgds
Charu
Attachments
SearchPanel_PDFXedit.png
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: show/hide search panel programmatically

Post by Sasha - Tracker Dev Team »

Hello Charu,

Please check the FullDemo application - it has the code that does that.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

Re: show/hide search panel programmatically

Post by chavas »

Hi Alex,

PDFXEdit.IUIX_Cmd cmd=uiInst.CmdManager.Cmds.Find("cmd.view.search");
pdfCtl.Inst.ExecUICmd2(cmd.ID);

The above command (from FullDemo) toggles the search pane. If it is visible, it hides it and if it is hidden, it makes it visible. I need to hide is always when the window is loaded.

Rgds
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: show/hide search panel programmatically

Post by Sasha - Tracker Dev Team »

Code: Select all

private void ShowPane(IDS paneID, bool bShow)
{
	pdfCtl.ShowPane2(nIDS[(int)paneID], bShow);
}
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

Re: show/hide search panel programmatically

Post by chavas »

Thank you....

Rgds
Charu
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: show/hide search panel programmatically

Post by Will - Tracker Supp »

:D
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Post Reply