Toolbars and menubars vanished
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.
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.
Toolbars and menubars vanished
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
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 66 times
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
Hello Charu,
What version of the Editor SDK are you using?
Cheers,
Alex
What version of the Editor SDK are you using?
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Toolbars and menubars vanished
Hi,
we are using 6.0.322.7 version
Charu
we are using 6.0.322.7 version
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
Hello Charu,
Please update to the latest version and see whether the problem reoccurs.
Cheers,
Alex
Please update to the latest version and see whether the problem reoccurs.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Toolbars and menubars vanished
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
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
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
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
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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Toolbars and menubars vanished
Thank you...We are waiting for your reply on this issue..
Rgds
Charu
Rgds
Charu
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2352
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Toolbars and menubars vanished
Hi Charu.
We investigated your settings.dat file and see that all cmd-panes (i.e. - containers of cmd-bars) are hidden:
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#):
- you may look to our FullDemo example to get more helpful info about 'pre-loading' of Inst object.
HTH.
We investigated your settings.dat file and see that all cmd-panes (i.e. - containers of cmd-bars) are hidden:
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.
...
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.
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.
Re: Toolbars and menubars vanished
Thank you for your help...I will try this and let you know.
Rgds
Charu
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Toolbars and menubars vanished
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
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
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
Hello Charu,
Well you can disable these shortcuts or just do a setting reset/load each time a program starts.
Cheers,
Alex
Well you can disable these shortcuts or just do a setting reset/load each time a program starts.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Toolbars and menubars vanished
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
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
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
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.pdf-xchange.com/vi ... veShortcut
Cheers,
Alex
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.pdf-xchange.com/vi ... veShortcut
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Toolbars and menubars vanished
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
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
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Toolbars and menubars vanished
Hello Charu,
You should use this method https://sdkhelp.pdf-xchange.com/vi ... ShowCmdBar to show or hide the needed command bars (not toggle them).
Cheers,
Alex
You should use this method https://sdkhelp.pdf-xchange.com/vi ... ShowCmdBar to show or hide the needed command bars (not toggle them).
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ