Toolbars and menubars vanished

PDF-XChange Editor SDK for Developers

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

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: 111
Joined: Tue Mar 15, 2016 12:21 pm

Toolbars and menubars vanished

Post by chavas » Tue May 22, 2018 1:25 pm

Hi,

We are using your component as PDF editor and viewer in our software. We have customized menu and toolbars in both instances. It happens randomly, but many times, the menu and tool bars simply vanish from the editor/viewer window. Pressing F8 or F9 does not bring it back. We have to remove 'settings.dat' file to reset all the settings and get the menu bars back.
Attached here is one such settings.dat file with no tool/menu bars. Can you guide us why this happens and also how to fix it without having to remove the whole file and reset every setting.

Rgds
Charu
Attachments
settings.zip
(5.14 KiB) Downloaded 25 times

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Tue May 22, 2018 1:38 pm

Hello Charu,

What version of the Editor SDK are you using?

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Wed May 23, 2018 5:41 am

Hi,

we are using 6.0.322.7 version

Charu

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Wed May 23, 2018 6:18 am

Hello Charu,

Please update to the latest version and see whether the problem reoccurs.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Wed May 23, 2018 7:44 am

Hi Alex,

We are not able to recreate this issue in our development environment. Our QA team has not been able to find it. It happens to many of our customers randomly. So we got their settings.dat file hoping that you would be able to see the file and tell us what causes this issue and some way to resolve it.

Updating to the latest version is not possible immediately as that would require testing and evaluating the component before updating our software which again would go to the next version release.
So pls see if you can give us some clue from the settings.dat file.

Rgds
Charu

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Thu May 24, 2018 6:42 am

Hello Charu,

I've sent a link to this topic to the developer who can tell more about this - when he has time, he'll take a look at this one and hopefully can tell more.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Fri May 25, 2018 6:27 am

Thank you...We are waiting for your reply on this issue..

Rgds
Charu

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

Re: Toolbars and menubars vanished

Post by Vasyl-Tracker Dev Team » Mon May 28, 2018 8:55 pm

Hi Charu.

We investigated your settings.dat file and see that all cmd-panes (i.e. - containers of cmd-bars) are hidden:
HiddenCmdPanes.png
It looks like that user 'mistakenly' hit the Ctrl+F8 combination that toggles all cmd-panes. May be that is the reason..
Tip: you may fixup that issue in runtime, before instantiate of our ActiveX Control, by the following code(C#):

Code: Select all

Inst.Init(.., pathToSettingsDat, ...);
...
Inst.Settings["MainView.CmdLayout.Top.Hidden"] .v = 0;
Inst.Settings["MainView.CmdLayout.Bottom.Hidden"] .v = 0;
Inst.Settings["MainView.CmdLayout.Left.Hidden"] .v = 0;
Inst.Settings["MainView.CmdLayout.Right.Hidden"] .v = 0;
...
InitializeComponent(); // - standard method in C# that is automatically created and managed by Windows Forms designer. 
                       // It also instantiates all ActiveX-controls used on the form.
...
- you may look to our FullDemo example to get more helpful info about 'pre-loading' of Inst object.

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.

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Tue May 29, 2018 6:18 am

Thank you for your help...I will try this and let you know.

Rgds
Charu

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Tue May 29, 2018 6:20 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Wed May 30, 2018 7:53 am

Hi...

Thank you..that fixed the ctrl+F8 issue. Another problem is with F8 and F9. When a user accidentally presses F8 or F9, the toolbar and menu bars are hidden. This setting does not bring them back.
Inst.Settings["MainView.CmdLayout.Top.Hidden"] .v = 0;
have written the above code before Initializecomponent...but the toolbar/menu bar which is hidden using F8 or F9 do not come back when the window is loaded again. We have to press F8 or F9 to get them back. ..Is there some other settings for that...????

Rgds
Charu

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Wed May 30, 2018 1:01 pm

Hello Charu,

Well you can disable these shortcuts or just do a setting reset/load each time a program starts.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Thu May 31, 2018 6:54 am

Hi,

I do not want to reset all the settings...I want to show toolbars/menu bars regardless of the saved settings in settings.dat file. I am using the pdf editor control in three different windows. In one I am showing both toolbars and menu bar, in the second window, menu bar is hidden and toolbar is shown and in the third window, both toolbar and menu bars are hidden. So I want to show/hide toolbars are needed in my application, regardless of the saved settings...
Another workaround, would be to disable F8 and F9..how do we do that?

Rgds
Charu

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Thu May 31, 2018 7:58 am

Hello Charu,

There were multiple topics on this matter - please use forum search before asking:
viewtopic.php?f=66&t=25093&p=98126&hili ... cut#p98126
https://sdkhelp.tracker-software.com/vi ... veShortcut

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

chavas
User
Posts: 111
Joined: Tue Mar 15, 2016 12:21 pm

Re: Toolbars and menubars vanished

Post by chavas » Thu May 31, 2018 12:00 pm

Hi,

Removeshortcut method would disable the shortcuts... Here are the commands for that-
Dim cmd_menu As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.view.toolbar.menu")
cmd_menu.RemoveShortcut(0)

Dim cmd_toolbars As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.view.toggleAllCmdBars")
cmd_toolbars.RemoveShortcut(0)

But how do we always show toolbar/menu bar (overriding the settings.dat). I do not want to toggle them as examples in your fulldemo application do.

Thank you for your help.
Rgds
Charu

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

Re: Toolbars and menubars vanished

Post by Sasha - Tracker Dev Team » Sat Jun 02, 2018 6:24 am

Hello Charu,

You should use this method https://sdkhelp.tracker-software.com/vi ... ShowCmdBar to show or hide the needed command bars (not toggle them).

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply