PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: TrackerSupp-Daniel, Tracker Support, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Paul - Tracker Supp, Sean - Tracker, 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.
 
askelly
User
Topic Author
Posts: 36
Joined: Wed Mar 15, 2017 4:01 pm

Build 323 VisibleCmdPanes not working

Tue Dec 05, 2017 1:08 am

The .VisibleCmdPanes property doesn't appear to be working in the 323 build. This is true in my app and also in FullDemo, where toggling the "Show Command Panes" checkbox has no effect.
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 2794
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Build 323 VisibleCmdPanes not working

Tue Dec 05, 2017 8:00 am

Hello askelly,

There is no 323 build for the SDK yet - the SDK part needs to be updated for correct ribbon/classic behavior. And you code might not be working because the ribbon's command tabs IDs are different then the classic interface's ones.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
 
askelly
User
Topic Author
Posts: 36
Joined: Wed Mar 15, 2017 4:01 pm

Re: Build 323 VisibleCmdPanes not working

Tue Dec 05, 2017 4:12 pm

The download page hasn't been updated yet but if you click the download link you get an SDK that identifies itself as 7.0.323.0. Is there an ETA for a build with updated ribbon behavior? Thanks!

Sasha - Tracker Dev Team wrote:
Hello askelly,

There is no 323 build for the SDK yet - the SDK part needs to be updated for correct ribbon/classic behavior. And you code might not be working because the ribbon's command tabs IDs are different then the classic interface's ones.

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

Re: Build 323 VisibleCmdPanes not working

Wed Dec 06, 2017 7:09 am

Hello askelly,

Just confirmed that:
please note that release includes: 1) end-user products; 2) Editor SDK; 3) CoreAPI
and does not include: 1) Driver API; 2) OCR SDK; 3) Simple Editor SDK

So basically the problem is that
And you code might not be working because the ribbon's command tabs IDs are different then the classic interface's ones.

Try switching to the classic mode and see whether it works. For that you will have to use the IPXV_Inst::EnableRibbonUI(false) method.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
 
askelly
User
Topic Author
Posts: 36
Joined: Wed Mar 15, 2017 4:01 pm

Re: Build 323 VisibleCmdPanes not working

Thu Dec 07, 2017 12:10 am

Thanks, but that didn't work. Changing .VisibleCmdPanes has no impact regardless of the state of EnableRibbonUI(). I can partially work around the problem by doing AxPXV_Control.Inst.MainFrm(0).View.CmdPaneTop.Hide(), but I haven't yet figured out how to get rid of the bottom bar. In the prior version I believe both of those were hidden by default.
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 2794
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Build 323 VisibleCmdPanes not working

Thu Dec 07, 2017 8:08 am

Hello askelly,

We will look to this one and hopefully will fix this to the next release.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
 
RMan
User
Posts: 95
Joined: Tue Jul 02, 2013 10:06 pm

Re: Build 323 VisibleCmdPanes not working

Thu Dec 07, 2017 1:55 pm

There are some new panes I believe so that is why it's probably still displaying it.

Specifically try turning off these. I think the capitalization is correct in the strings below.
"cmdbar.quickAccess"
"cmdbar.quickLaunch"
"cmdbar.quickFind"
"cmdbar.view"

Or try looping through the cmdBar.First to cmdBar.Last and turning them all off. That way you are covered in the future if more are added. The downside is you have to turn the ones back on for things like the Bookmarks Pane and such if you are using those panes.
Dim i As Integer
For i = (pdfMainCtl.Inst.Str2ID("cmdbar.First", False) + 1) To (pdfMainCtl.Inst.Str2ID("cmdbar.Last", False) - 1)
Call pdfCtl.Inst.ShowCmdBar2(i, False)
Next
 
askelly
User
Topic Author
Posts: 36
Joined: Wed Mar 15, 2017 4:01 pm

Re: Build 323 VisibleCmdPanes not working

Fri Dec 08, 2017 5:51 pm

That ended up working after changing "first" and "last" to all lowercase. Checking for multiple dots in the cmdbar name prevents quite a few exceptions, which are slow. This code still results in a few exceptions but it's not a big deal.
                       Try
                            For i As Integer = (.Inst.Str2ID("cmdbar.first", False) + 1) To (.Inst.Str2ID("cmdbar.last", False) - 1)
                                Try
                                    If .Inst.ID2Str(i).Split(".").Length < 3 Then .Inst.ShowCmdBar2(i, False)
                                Catch
                                End Try
                            Next
                        Catch ex As Exception
                            Logger.Error(ex.Message)
                        End Try


Thanks!
 
Paul - Tracker Supp
User
Posts: 4713
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Build 323 VisibleCmdPanes not working

Fri Dec 08, 2017 8:52 pm

Hi askelly

so are you happy with that or looking for further feedback on that last post?
_________________
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

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
 
askelly
User
Topic Author
Posts: 36
Joined: Wed Mar 15, 2017 4:01 pm

Re: Build 323 VisibleCmdPanes not working

Fri Dec 08, 2017 9:53 pm

I'm happy with that for now. I understand a fix is in the queue for the next release. Thanks.
 
RMan
User
Posts: 95
Joined: Tue Jul 02, 2013 10:06 pm

Re: Build 323 VisibleCmdPanes not working

Fri Dec 08, 2017 10:36 pm

There is a bug in the current version with this. You cannot toggle off the document panes (using the ShowCmdBar) on the bottom like the cmdbar.pageLayout, cmdbar.pageZoom, and 'cmdbar.docOptions unless their is a document open. Which means as a developer we cannot prehide what we want before opening a document.

Here's the list of the ones that I found that were visible after at startup but that I could toggle off after opening a document.

I'm guessing the programmers are testing if they are visible instead of just turning off their value.

cmdbar.pageNav;cmdbar.pageLayout;cmdbar.pageZoom;cmdbar.docOptions;cmdbar.launchApp;cmdbar.bookmarksView;cmdbar.pageThumbsView;cmdbar.contentsView;cmdbar.namedDestsView;cmdbar.attachmentsView;cmdbar.commentsView;cmdbar.signaturesView;cmdbar.layersView;cmdbar.fieldsView;

I've attached up a simple VB6 project that you can test for yourself also.

PDF-XChangeEditorUISample.zip
(12.92 KiB) Downloaded 3 times
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 2794
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Build 323 VisibleCmdPanes not working

Sat Dec 09, 2017 6:32 am

Hello guys,

We are working on the fix and hopefully will finish till the next release. Also, thanks for the investigations.

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

Who is online

Users browsing this forum: No registered users and 3 guests