Editor UI changes when another window with pdfeditorx is loaded
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.
Editor UI changes when another window with pdfeditorx is loaded
Hi,
We are using PDFXEditor in two places in our project..as a viewer(see screenshot1.png) and as an editor(see screenshot2.png). There are some custom buttons added to both. Some menu bars are visible in viewer and not in the editor. These work fine as long as both are not open together. If both the windows are open together, the changes made to the UI of the first window are lost when the second is loaded. Pls see the screenshot3.png. Pls guide us how to fix this issue.
Rgds
Charu
We are using PDFXEditor in two places in our project..as a viewer(see screenshot1.png) and as an editor(see screenshot2.png). There are some custom buttons added to both. Some menu bars are visible in viewer and not in the editor. These work fine as long as both are not open together. If both the windows are open together, the changes made to the UI of the first window are lost when the second is loaded. Pls see the screenshot3.png. Pls guide us how to fix this issue.
Rgds
Charu
- Attachments
-
- screenshots.zip
- (1.53 MiB) Downloaded 100 times
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Please read this topic:
https://forum.pdf-xchange.com/ ... 66&t=27822
Also, there are links at the bottom - please read them too.
Cheers,
Alex
Please read this topic:
https://forum.pdf-xchange.com/ ... 66&t=27822
Also, there are links at the bottom - please read them too.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
I read the posts that you mentioned. Looks like there is no resolution to this issue...non in near future. I tried using this -
pdfctrl.Inst.Settings("Docs.AutoSyncDocPanesLayouts").v = False
pdfctrl.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Documents)
but does not help. Would it make sense to try different parameters in 'pdfctrl.Inst.FireAppPrefsChanged'
Let me know if I am going in wrong direction. We have used the component extensively in our project and this will cause major problems....
Rgds
Charu
I read the posts that you mentioned. Looks like there is no resolution to this issue...non in near future. I tried using this -
pdfctrl.Inst.Settings("Docs.AutoSyncDocPanesLayouts").v = False
pdfctrl.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Documents)
but does not help. Would it make sense to try different parameters in 'pdfctrl.Inst.FireAppPrefsChanged'
Let me know if I am going in wrong direction. We have used the component extensively in our project and this will cause major problems....
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
You will have to load the layout for each frame separately:
Also, can you please show how are you customizing the command bars right now?
Cheers,
Alex
You will have to load the layout for each frame separately:
Code: Select all
PDFXEdit.IPXV_MainFrame firstMainFrame = pdfCtl.Inst.MainFrm[0];
PDFXEdit.IPXV_MainFrame secondMainFrame = pdfCtl.Inst.MainFrm[1];
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
We are placing AxPDFXEdit.AxPXV_Control in two different forms (windows) of our project. We are not using same window/form. We work on dotnet -visual studio 2013.
Both windows are loaded separately and controls are also loaded separately. We are not loading multiple editors in same window.
Here is the code to show/hide commandbuttons- we call this code in constructor of the form after InitializeComponent()
pdfctrl.LockedCmdBars = True
Dim cmdopen As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.open")
cmdopen.Offline = True
cmdopen.Hidden = True
Dim cmdopenfromurl As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openFromURL")
cmdopenfromurl.Offline = True
cmdopenfromurl.Hidden = True
Dim cmdopenfromcomp As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openFromComp")
cmdopenfromcomp.Hidden = True
cmdopenfromcomp.Offline = True
Dim cmdopenfrom As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openFrom")
cmdopenfrom.Hidden = True
cmdopenfrom.Offline = True
Dim cmdsavecopyas As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.saveCopyAs")
cmdsavecopyas.Hidden = True
cmdsavecopyas.Offline = True
Dim cmdsaveall As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.saveAll")
cmdsaveall.Hidden = True
cmdsaveall.Offline = True
Dim cmdsaveto As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.saveTo")
cmdsaveto.Hidden = True
cmdsaveto.Offline = True
Dim cmdsave As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.save")
cmdsave.Hidden = True
cmdsave.Offline = True
Dim cmdclose As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.close")
cmdclose.Hidden = True
cmdclose.Offline = True
Dim cmdcloseAll As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.closeAll")
cmdcloseAll.Hidden = True
cmdcloseAll.Offline = True
Dim cmdcopyfullfilename As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.copySrcFileName")
cmdcopyfullfilename.Hidden = True
cmdcopyfullfilename.Offline = True
Dim cmdopencontfolder As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openSrcFolder")
cmdopencontfolder.Hidden = True
cmdopencontfolder.Offline = True
Dim cmdlaunchextrapp As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.launchExternalApp")
cmdlaunchextrapp.Hidden = True
cmdlaunchextrapp.Offline = True
Dim cmdlickey As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.enterkey")
cmdlickey.Hidden = True
cmdlickey.Offline = True
Dim cmdhomepage As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.homepage")
cmdhomepage.Hidden = True
cmdhomepage.Offline = True
Dim cmddigisign As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures")
cmddigisign.Hidden = True
cmddigisign.Offline = True
Dim cmdexpsettings As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.settings.export")
cmdexpsettings.Hidden = True
cmdexpsettings.Offline = True
Dim cmdresetsettings As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.settings.reset")
cmdresetsettings.Hidden = True
cmdresetsettings.Offline = True
Dim cmdimportsettings As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.settings.import")
cmdimportsettings.Hidden = True
cmdimportsettings.Offline = True
Dim cmdLaunchtoolbar As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.view.toolbar.launchApp")
cmdLaunchtoolbar.Hidden = True
cmdLaunchtoolbar.Offline = True
Dim cmdcheckforupdate As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.checkForUpdates")
cmdcheckforupdate.Hidden = True
cmdcheckforupdate.Offline = True
Dim cmdhelpcontnt As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.contents")
cmdhelpcontnt.Hidden = True
cmdhelpcontnt.Offline = True
Dim cmdhelpreport As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.report")
cmdhelpreport.Hidden = True
cmdhelpreport.Offline = True
Dim cmdhelpsup As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.support")
cmdhelpsup.Hidden = True
cmdhelpsup.Offline = True
Dim cmdhelp As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help")
cmdhelp.Hidden = False
cmdhelp.Offline = False
Dim cmdnewdoc As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDoc")
cmdnewdoc.Hidden = False
cmdnewdoc.Offline = False
Dim newdocfromscan As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDocScanner")
newdocfromscan.Hidden = True
newdocfromscan.Offline = True
Dim cmdOCR As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.OCRPages")
cmdOCR.Hidden = True
cmdOCR.Offline = True
Dim cmdDigiSign1 As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.sign")
cmdDigiSign1.Hidden = True
cmdDigiSign1.Offline = True
Dim cmdDigiSignTS As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.timestamp")
cmdDigiSignTS.Hidden = True
cmdDigiSignTS.Offline = True
Dim cmdDigiSignClear As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.clear")
cmdDigiSignClear.Hidden = True
cmdDigiSignClear.Offline = True
Dim cmdDigiSigncert As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.certify")
cmdDigiSigncert.Hidden = True
cmdDigiSigncert.Offline = True
Dim cmdDigiSignInvCert As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.certify.invisible")
cmdDigiSignInvCert.Hidden = True
cmdDigiSignInvCert.Offline = True
Dim cmdDigiSignPlaceSign As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.tool.digisig")
cmdDigiSignPlaceSign.Hidden = True
cmdDigiSignPlaceSign.Offline = True
Dim cmdcustomizetoolbar As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.view.toolbar.customize")
cmdcustomizetoolbar.Hidden = True
cmdcustomizetoolbar.Offline = True
Dim cmdeditform As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.tool.editFields")
cmdeditform.Hidden = True
cmdeditform.Offline = True
Dim cmdEmail As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.sendByEmail")
cmdEmail.Hidden = True
cmdEmail.Offline = True
Dim ThumbOption As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.thumbnailsView.options") ' '("cmd.views.popupOption")
ThumbOption.Hidden = True
ThumbOption.Offline = True
Dim SignOption As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.signaturesView.options") '("cmd.views.popupOption")
SignOption.Hidden = True
SignOption.Offline = True
Dim ThumbProperty As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.props")
ThumbProperty.Hidden = True
ThumbProperty.Offline = True
Dim ThumbDelete As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.delete")
ThumbDelete.Hidden = True
ThumbDelete.Offline = True
Dim AddBookmark As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.addBookmark")
AddBookmark.Hidden = True
AddBookmark.Offline = True
Dim AddStickynote As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.addStickyNote")
AddStickynote.Hidden = True
AddStickynote.Offline = True
Dim cmdpaste As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.paste")
cmdpaste.Hidden = True
cmdpaste.Offline = True
Dim cmdAddLink As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.addLink")
cmdAddLink.Hidden = True
cmdAddLink.Offline = True
Dim ThumbInsert As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.insertPages.item")
ThumbInsert.Hidden = True
ThumbInsert.Offline = True
Dim cmdci As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.SubMenuCheckin")
If cmdci IsNot Nothing Then
cmdci.Hidden = True
cmdci.Offline = True
End If
Dim cmduc As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.SubMenuUndoCheckout")
If cmduc IsNot Nothing Then
cmduc.Hidden = True
cmduc.Offline = True
End If
Dim cmdim As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.SubMenuImport")
If cmdim IsNot Nothing Then
cmdim.Hidden = True
cmdim.Offline = True
End If
ShowCmdBar(IDS.cmdbar_standard, (True))
ShowCmdBar(IDS.cmdbar_pageLayout, (True))
ShowCmdBar(IDS.cmdbar_docOptions, (False)) '
ShowCmdBar(IDS.cmdbar_pageNav, (False)) '
ShowCmdBar(IDS.cmdbar_menubar, False) '
ShowCmdBar(IDS.cmdbar_file, (True))
ShowCmdBar(IDS.cmdbar_rotateView, True)
pdfctrl.LockedCmdPanes = True
ShowCmdBar(IDS.cmdbar_zoom, True)
ShowCmdBar(IDS.cmdbar_contentEditing, False)
ShowCmdBar(IDS.cmdbar_commenting, False)
ShowCmdBar(IDS.cmdbar_measurement, False)
ShowCmdBar(IDS.cmdbar_properties, False)
ShowCmdBar(IDS.cmdbar_launchApp, False)
ShowCmdBar(IDS.cmdbar_addon, False)
pdfctrl.VisibleCmdPanes = CUInt(PDFXEdit.PXV_VisibleCmdPanes.PXV_VisibleCmdPanes_All)
pdfctrl.PagesLayoutMode = PDFXEdit.PXC_PagesLayout.PageLayout_SinglePage
Private Sub ShowCmdBar(ByVal barID As IDS, ByVal bShow As Boolean)
Try
pdfctrl.Inst.ShowCmdBar2(nIDS(barID), bShow)
Catch ex As Exception
msgbox.show(ex.tostring)
End Try
End Sub
We are placing AxPDFXEdit.AxPXV_Control in two different forms (windows) of our project. We are not using same window/form. We work on dotnet -visual studio 2013.
Both windows are loaded separately and controls are also loaded separately. We are not loading multiple editors in same window.
Here is the code to show/hide commandbuttons- we call this code in constructor of the form after InitializeComponent()
pdfctrl.LockedCmdBars = True
Dim cmdopen As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.open")
cmdopen.Offline = True
cmdopen.Hidden = True
Dim cmdopenfromurl As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openFromURL")
cmdopenfromurl.Offline = True
cmdopenfromurl.Hidden = True
Dim cmdopenfromcomp As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openFromComp")
cmdopenfromcomp.Hidden = True
cmdopenfromcomp.Offline = True
Dim cmdopenfrom As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openFrom")
cmdopenfrom.Hidden = True
cmdopenfrom.Offline = True
Dim cmdsavecopyas As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.saveCopyAs")
cmdsavecopyas.Hidden = True
cmdsavecopyas.Offline = True
Dim cmdsaveall As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.saveAll")
cmdsaveall.Hidden = True
cmdsaveall.Offline = True
Dim cmdsaveto As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.saveTo")
cmdsaveto.Hidden = True
cmdsaveto.Offline = True
Dim cmdsave As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.save")
cmdsave.Hidden = True
cmdsave.Offline = True
Dim cmdclose As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.close")
cmdclose.Hidden = True
cmdclose.Offline = True
Dim cmdcloseAll As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.closeAll")
cmdcloseAll.Hidden = True
cmdcloseAll.Offline = True
Dim cmdcopyfullfilename As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.copySrcFileName")
cmdcopyfullfilename.Hidden = True
cmdcopyfullfilename.Offline = True
Dim cmdopencontfolder As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.openSrcFolder")
cmdopencontfolder.Hidden = True
cmdopencontfolder.Offline = True
Dim cmdlaunchextrapp As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.launchExternalApp")
cmdlaunchextrapp.Hidden = True
cmdlaunchextrapp.Offline = True
Dim cmdlickey As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.enterkey")
cmdlickey.Hidden = True
cmdlickey.Offline = True
Dim cmdhomepage As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.homepage")
cmdhomepage.Hidden = True
cmdhomepage.Offline = True
Dim cmddigisign As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures")
cmddigisign.Hidden = True
cmddigisign.Offline = True
Dim cmdexpsettings As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.settings.export")
cmdexpsettings.Hidden = True
cmdexpsettings.Offline = True
Dim cmdresetsettings As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.settings.reset")
cmdresetsettings.Hidden = True
cmdresetsettings.Offline = True
Dim cmdimportsettings As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.settings.import")
cmdimportsettings.Hidden = True
cmdimportsettings.Offline = True
Dim cmdLaunchtoolbar As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.view.toolbar.launchApp")
cmdLaunchtoolbar.Hidden = True
cmdLaunchtoolbar.Offline = True
Dim cmdcheckforupdate As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.checkForUpdates")
cmdcheckforupdate.Hidden = True
cmdcheckforupdate.Offline = True
Dim cmdhelpcontnt As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.contents")
cmdhelpcontnt.Hidden = True
cmdhelpcontnt.Offline = True
Dim cmdhelpreport As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.report")
cmdhelpreport.Hidden = True
cmdhelpreport.Offline = True
Dim cmdhelpsup As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help.support")
cmdhelpsup.Hidden = True
cmdhelpsup.Offline = True
Dim cmdhelp As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.help")
cmdhelp.Hidden = False
cmdhelp.Offline = False
Dim cmdnewdoc As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDoc")
cmdnewdoc.Hidden = False
cmdnewdoc.Offline = False
Dim newdocfromscan As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDocScanner")
newdocfromscan.Hidden = True
newdocfromscan.Offline = True
Dim cmdOCR As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.OCRPages")
cmdOCR.Hidden = True
cmdOCR.Offline = True
Dim cmdDigiSign1 As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.sign")
cmdDigiSign1.Hidden = True
cmdDigiSign1.Offline = True
Dim cmdDigiSignTS As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.timestamp")
cmdDigiSignTS.Hidden = True
cmdDigiSignTS.Offline = True
Dim cmdDigiSignClear As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.clear")
cmdDigiSignClear.Hidden = True
cmdDigiSignClear.Offline = True
Dim cmdDigiSigncert As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.certify")
cmdDigiSigncert.Hidden = True
cmdDigiSigncert.Offline = True
Dim cmdDigiSignInvCert As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.signatures.certify.invisible")
cmdDigiSignInvCert.Hidden = True
cmdDigiSignInvCert.Offline = True
Dim cmdDigiSignPlaceSign As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.tool.digisig")
cmdDigiSignPlaceSign.Hidden = True
cmdDigiSignPlaceSign.Offline = True
Dim cmdcustomizetoolbar As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.view.toolbar.customize")
cmdcustomizetoolbar.Hidden = True
cmdcustomizetoolbar.Offline = True
Dim cmdeditform As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.tool.editFields")
cmdeditform.Hidden = True
cmdeditform.Offline = True
Dim cmdEmail As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.sendByEmail")
cmdEmail.Hidden = True
cmdEmail.Offline = True
Dim ThumbOption As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.thumbnailsView.options") ' '("cmd.views.popupOption")
ThumbOption.Hidden = True
ThumbOption.Offline = True
Dim SignOption As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.signaturesView.options") '("cmd.views.popupOption")
SignOption.Hidden = True
SignOption.Offline = True
Dim ThumbProperty As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.props")
ThumbProperty.Hidden = True
ThumbProperty.Offline = True
Dim ThumbDelete As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.delete")
ThumbDelete.Hidden = True
ThumbDelete.Offline = True
Dim AddBookmark As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.addBookmark")
AddBookmark.Hidden = True
AddBookmark.Offline = True
Dim AddStickynote As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.addStickyNote")
AddStickynote.Hidden = True
AddStickynote.Offline = True
Dim cmdpaste As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.paste")
cmdpaste.Hidden = True
cmdpaste.Offline = True
Dim cmdAddLink As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.addLink")
cmdAddLink.Hidden = True
cmdAddLink.Offline = True
Dim ThumbInsert As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.document.insertPages.item")
ThumbInsert.Hidden = True
ThumbInsert.Offline = True
Dim cmdci As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.SubMenuCheckin")
If cmdci IsNot Nothing Then
cmdci.Hidden = True
cmdci.Offline = True
End If
Dim cmduc As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.SubMenuUndoCheckout")
If cmduc IsNot Nothing Then
cmduc.Hidden = True
cmduc.Offline = True
End If
Dim cmdim As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.SubMenuImport")
If cmdim IsNot Nothing Then
cmdim.Hidden = True
cmdim.Offline = True
End If
ShowCmdBar(IDS.cmdbar_standard, (True))
ShowCmdBar(IDS.cmdbar_pageLayout, (True))
ShowCmdBar(IDS.cmdbar_docOptions, (False)) '
ShowCmdBar(IDS.cmdbar_pageNav, (False)) '
ShowCmdBar(IDS.cmdbar_menubar, False) '
ShowCmdBar(IDS.cmdbar_file, (True))
ShowCmdBar(IDS.cmdbar_rotateView, True)
pdfctrl.LockedCmdPanes = True
ShowCmdBar(IDS.cmdbar_zoom, True)
ShowCmdBar(IDS.cmdbar_contentEditing, False)
ShowCmdBar(IDS.cmdbar_commenting, False)
ShowCmdBar(IDS.cmdbar_measurement, False)
ShowCmdBar(IDS.cmdbar_properties, False)
ShowCmdBar(IDS.cmdbar_launchApp, False)
ShowCmdBar(IDS.cmdbar_addon, False)
pdfctrl.VisibleCmdPanes = CUInt(PDFXEdit.PXV_VisibleCmdPanes.PXV_VisibleCmdPanes_All)
pdfctrl.PagesLayoutMode = PDFXEdit.PXC_PagesLayout.PageLayout_SinglePage
Private Sub ShowCmdBar(ByVal barID As IDS, ByVal bShow As Boolean)
Try
pdfctrl.Inst.ShowCmdBar2(nIDS(barID), bShow)
Catch ex As Exception
msgbox.show(ex.tostring)
End Try
End Sub
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
As you can read in the post link I gave you before:
https://forum.pdf-xchange.com/ ... 22#p108035
If you call the ipxvInst.ShowCmdBar or uiInst.CmdManager - they are the same for each of the controls practically changing the parameters of the each of the controls at the same time. What you can do is customize each IPXV_MainFrame directly:
Cheers,
Alex
As you can read in the post link I gave you before:
https://forum.pdf-xchange.com/ ... 22#p108035
If you call the ipxvInst.ShowCmdBar or uiInst.CmdManager - they are the same for each of the controls practically changing the parameters of the each of the controls at the same time. What you can do is customize each IPXV_MainFrame directly:
Code: Select all
pdfCtl.Inst.LockCmdCustomizationEvent();
PDFXEdit.IUIX_Inst iuiInst = (PDFXEdit.IUIX_Inst)pdfCtl.Inst.GetExtension("UIX");
iuiInst.CmdManager.LockAllPanesUpdates();
PDFXEdit.IPXV_MainFrame firstMainFrame = pdfCtl.Inst.MainFrm[0];
firstMainFrame.View.CmdPaneTop.Hide();
firstMainFrame.View.CmdPaneLeft.Hide();
firstMainFrame.View.CmdPaneRight.Hide();
firstMainFrame.View.CmdPaneBottom.Hide();
PDFXEdit.IPXV_MainFrame secondMainFrame = pdfCtl.Inst.MainFrm[1];
secondMainFrame.View.CmdPaneTop.Show();
secondMainFrame.View.CmdPaneLeft.Show();
secondMainFrame.View.CmdPaneRight.Show();
secondMainFrame.View.CmdPaneBottom.Show();
iuiInst.CmdManager.UnlockAllPanesUpdates();
pdfCtl.Inst.UnlockCmdCustomizationEvent();
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
Thank you for the sample code....
Can you also show me how to show/hide command bars . I wrote this code..but its throwing errors.
dim MainFrmCntforEditor as integer=pdfctrl.Inst.MainFrmCount
Public Enum IDS
''// cmdbars
cmdbar_menubar
cmdbar_standard
cmdbar_file
cmdbar_rotateView
cmdbar_zoom
cmdbar_pageNav
cmdbar_contentEditing
cmdbar_pageLayout
cmdbar_docOptions
cmdbar_commenting
cmdbar_measurement
cmdbar_properties
cmdbar_launchApp
cmdbar_addon
'// panes/views
pageThumbnailsView
bookmarksView
contentsView
attachmentsView
signaturesView
commentsView
layersView
pdfNamedDestsView
propertiesView
searchView
stampsView
commentStylesView
panzoomView
_op_begin_
''// print
op_document_printPages
''// new doc
op_newBlankDoc
op_imagesToDoc
op_textToDoc
op_combineDocs
''// pages
op_document_insertPages
op_document_insertEmptyPages
op_document_deletePages
op_document_extractPages
op_document_replacePages
op_document_cropPages
op_document_resizePages
op_document_addWatermarks
'' // export comments & fields
op_document_summarizeAnnots
op_document_exportCommentsAndFields
'' // import comments & fields
op_document_importCommentsAndFields
''// export
op_document_exportToImages
_op_end_
_e_begin_
''// events
e_activeDocChanged
e_document_modStateChanged
e_document_sourceChanged
e_pagesView_endLayoutChanging
e_uiLanguageChanged
e_beginPropDialog
_e_end_
_last_
End Enum
ShowCmdBar(IDS.cmdbar_standard, (True))
ShowCmdBar(IDS.cmdbar_pageLayout, (True))
ShowCmdBar(IDS.cmdbar_docOptions, (True))
ShowCmdBar(IDS.cmdbar_pageNav, (True))
ShowCmdBar(IDS.cmdbar_menubar, True)
ShowCmdBar(IDS.cmdbar_file, (True))
ShowCmdBar(IDS.cmdbar_rotateView, True)
pdfctrl.LockedCmdPanes = False
ShowCmdBar(IDS.cmdbar_zoom, True)
ShowCmdBar(IDS.cmdbar_contentEditing, True)
ShowCmdBar(IDS.cmdbar_commenting, True)
ShowCmdBar(IDS.cmdbar_measurement, True)
ShowCmdBar(IDS.cmdbar_properties, True)
ShowCmdBar(IDS.cmdbar_launchApp, False)
ShowCmdBar(IDS.cmdbar_addon, True)
Private Sub ShowCmdBar(ByVal barID As IDS, ByVal bShow As Boolean)
Try
If bShow Then
pdfctrl.Inst.MainFrm(MainFrmCntforEditor - 1).View.CmdBar2(nIDS(barID)).Show()
Else
pdfctrl.Inst.MainFrm(MainFrmCntforEditor - 1).View.CmdBar2(nIDS(barID)).Hide()
End If
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
Rgds
Charu
Thank you for the sample code....
Can you also show me how to show/hide command bars . I wrote this code..but its throwing errors.
dim MainFrmCntforEditor as integer=pdfctrl.Inst.MainFrmCount
Public Enum IDS
''// cmdbars
cmdbar_menubar
cmdbar_standard
cmdbar_file
cmdbar_rotateView
cmdbar_zoom
cmdbar_pageNav
cmdbar_contentEditing
cmdbar_pageLayout
cmdbar_docOptions
cmdbar_commenting
cmdbar_measurement
cmdbar_properties
cmdbar_launchApp
cmdbar_addon
'// panes/views
pageThumbnailsView
bookmarksView
contentsView
attachmentsView
signaturesView
commentsView
layersView
pdfNamedDestsView
propertiesView
searchView
stampsView
commentStylesView
panzoomView
_op_begin_
op_document_printPages
''// new doc
op_newBlankDoc
op_imagesToDoc
op_textToDoc
op_combineDocs
''// pages
op_document_insertPages
op_document_insertEmptyPages
op_document_deletePages
op_document_extractPages
op_document_replacePages
op_document_cropPages
op_document_resizePages
op_document_addWatermarks
'' // export comments & fields
op_document_summarizeAnnots
op_document_exportCommentsAndFields
'' // import comments & fields
op_document_importCommentsAndFields
''// export
op_document_exportToImages
_op_end_
_e_begin_
''// events
e_activeDocChanged
e_document_modStateChanged
e_document_sourceChanged
e_pagesView_endLayoutChanging
e_uiLanguageChanged
e_beginPropDialog
_e_end_
_last_
End Enum
ShowCmdBar(IDS.cmdbar_standard, (True))
ShowCmdBar(IDS.cmdbar_pageLayout, (True))
ShowCmdBar(IDS.cmdbar_docOptions, (True))
ShowCmdBar(IDS.cmdbar_pageNav, (True))
ShowCmdBar(IDS.cmdbar_menubar, True)
ShowCmdBar(IDS.cmdbar_file, (True))
ShowCmdBar(IDS.cmdbar_rotateView, True)
pdfctrl.LockedCmdPanes = False
ShowCmdBar(IDS.cmdbar_zoom, True)
ShowCmdBar(IDS.cmdbar_contentEditing, True)
ShowCmdBar(IDS.cmdbar_commenting, True)
ShowCmdBar(IDS.cmdbar_measurement, True)
ShowCmdBar(IDS.cmdbar_properties, True)
ShowCmdBar(IDS.cmdbar_launchApp, False)
ShowCmdBar(IDS.cmdbar_addon, True)
Private Sub ShowCmdBar(ByVal barID As IDS, ByVal bShow As Boolean)
Try
If bShow Then
pdfctrl.Inst.MainFrm(MainFrmCntforEditor - 1).View.CmdBar2(nIDS(barID)).Show()
Else
pdfctrl.Inst.MainFrm(MainFrmCntforEditor - 1).View.CmdBar2(nIDS(barID)).Hide()
End If
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Please read forum rules and provide the necessary information.
Cheers,
Alex
Please read forum rules and provide the necessary information.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
My apologies....
This line is throwing error...
PDFXEdit.IPXV_MainFrame firstMainFrame = pdfCtl.Inst.MainFrm[0];
firstMainFrame View.CmdBar2(nIDS(barID)).Show()
nIDs is the same enum from your sample project -FullDemo. I want to show/hide command bars like cmdbar_menubar ,cmdbar_standard, cmdbar_file, cmdbar_rotateView, cmdbar_zoom etc.
How do I get IDs of the command bars? I have been using this enum from your sample project....this is the line of code that I wrote before-
pdfctrl.Inst.ShowCmdBar2(nIDS(barID), true)
Rgds
My apologies....
This line is throwing error...
PDFXEdit.IPXV_MainFrame firstMainFrame = pdfCtl.Inst.MainFrm[0];
firstMainFrame View.CmdBar2(nIDS(barID)).Show()
nIDs is the same enum from your sample project -FullDemo. I want to show/hide command bars like cmdbar_menubar ,cmdbar_standard, cmdbar_file, cmdbar_rotateView, cmdbar_zoom etc.
How do I get IDs of the command bars? I have been using this enum from your sample project....this is the line of code that I wrote before-
pdfctrl.Inst.ShowCmdBar2(nIDS(barID), true)
Rgds
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
This works for me:
Cheers,
Alex
This works for me:
Code: Select all
pdfCtl.Inst.LockCmdCustomizationEvent();
PDFXEdit.IUIX_Inst iuiInst = (PDFXEdit.IUIX_Inst)pdfCtl.Inst.GetExtension("UIX");
iuiInst.CmdManager.LockAllPanesUpdates();
PDFXEdit.IPXV_MainFrame firstMainFrame = pdfCtl.Inst.MainFrm[0];
firstMainFrame.View.CmdBar["cmdbar.properties"].Show();
iuiInst.CmdManager.UnlockAllPanesUpdates();
pdfCtl.Inst.UnlockCmdCustomizationEvent();
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Thanks ..I will try this ...
Charu
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi,
I have been able to find most of the cmdbars...some which I have not been able to find are-
cmdbar_pageLayout, cmdbar_docOptions, cmdbar.pageNav, thumbnail and signature windows.
Need your help with these...how do I show/hide the above cmdbars/panes
Rgds
Charu
I have been able to find most of the cmdbars...some which I have not been able to find are-
cmdbar_pageLayout, cmdbar_docOptions, cmdbar.pageNav, thumbnail and signature windows.
Need your help with these...how do I show/hide the above cmdbars/panes
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Here's the code for the Thumbnails and Signatures:
Cheers,
Alex
Here's the code for the Thumbnails and Signatures:
Code: Select all
PDFXEdit.IUIX_Obj thumb = firstMainFrame.View.DocViewsArea.ActiveDocView.Doc.ActiveView.PageThumbsView.Obj;
PDFXEdit.IUIX_LayoutItem itm = firstMainFrame.View.Panes.Layout.GetItem(thumb);
itm.Show();
PDFXEdit.IUIX_Obj signs = firstMainFrame.View.DocViewsArea.ActiveDocView.Doc.ActiveView.SignaturesView.Obj;
PDFXEdit.IUIX_LayoutItem s = firstMainFrame.View.Panes.Layout.GetItem(signs);
s.Show();
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
Need to show/hide these cmd bars too-
cmdbar.pageLayout, cmdbar.docOptions, cmdbar.pageNav
Also need to hide/show individual command buttons like-
Dim newdocfromscan As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDocScanner")
newdocfromscan.Hidden = True
newdocfromscan.Offline = True
how do I find command buttons in command panes of mainfrm.
Rgds
Need to show/hide these cmd bars too-
cmdbar.pageLayout, cmdbar.docOptions, cmdbar.pageNav
Also need to hide/show individual command buttons like-
Dim newdocfromscan As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDocScanner")
newdocfromscan.Hidden = True
newdocfromscan.Offline = True
how do I find command buttons in command panes of mainfrm.
Rgds
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Regarding those cmdbars, you can only show them when the Pages View is available:
As for the commands, you will have to take individual IUIX_CmdItem from the needed bar and use IUIX_CmdItem::Show.
For additional information, look here:
https://forum.pdf-xchange.com/ ... 66&t=29247
https://forum.pdf-xchange.com/ ... em#p113768
https://forum.pdf-xchange.com/ ... em#p113561
Cheers,
Alex
Regarding those cmdbars, you can only show them when the Pages View is available:
Code: Select all
PDFXEdit.IUIX_Obj pagesViewObj = frame.View.DocViewsArea.ActiveDocView.Doc.ActiveView.PagesView.Obj;
System.IntPtr p;
pagesViewObj.Parent.QueryImpl(typeof(PDFXEdit.IUIX_ScrollContainer).GUID, null, out p);
IUIX_ScrollContainer sc = (PDFXEdit.IUIX_ScrollContainer)System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(p);
sc.CmdBar("cmdbar.pageLayout").Show(); // Hide()
For additional information, look here:
https://forum.pdf-xchange.com/ ... 66&t=29247
https://forum.pdf-xchange.com/ ... em#p113768
https://forum.pdf-xchange.com/ ... em#p113561
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi
Thank you...I will try this...another query...
how do I show/hide menubar
Rgds
Charu
Thank you...I will try this...another query...
how do I show/hide menubar
Rgds
Charu
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi,
Any updates..how do I show/hide menu bar using mainfrm.
Rgds
Charu
Any updates..how do I show/hide menu bar using mainfrm.
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Have you tried this?
Cheers,
Alex
Have you tried this?
Code: Select all
firstMainFrame.View.CmdBar["cmdbar.menubar"].Hide();
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
I had tried this..but did not work. So I created a sample application for you...and it worked in sample..!!!!!
So I realized, if I remove these lines..it would work...
pdfctrl.LockedCmdBars = True
pdfctrl.VisibleScrollbars = True
pdfctrl.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Documents)
so menu bar issue is resolved...
Another issue is show/hide some custom command buttons...I have added some custom buttons in "cmdbar.file"
I want to show/hide them conditionally..this is the code I have written...but not working-
Dim filecmdbar As PDFXEdit.IUIX_CmdBar = pdfctrl.Inst.MainFrm(MainFrmCntforEditor - 1).View.CmdBar("cmdbar.file")
If filecmdbar IsNot Nothing Then
Dim cmdsaveasViewer As PDFXEdit.IUIX_CmdItem = filecmdbar.FindFirstItemByCmdName("cmd.Save_As")
If cmdsaveasViewer IsNot Nothing Then
cmdsaveasViewer.Cmd.Offline = True
cmdsaveasViewer.Cmd.Hidden = True
End If
end if
MainFrmCntforEditor is my count of mainfrms..
I also tried cmdsaveasViewer.show(false). If I load two windows one by one, the setting of last window overwrites that of first window.
Pls guide ...
Rgds
I had tried this..but did not work. So I created a sample application for you...and it worked in sample..!!!!!
So I realized, if I remove these lines..it would work...
pdfctrl.LockedCmdBars = True
pdfctrl.VisibleScrollbars = True
pdfctrl.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Documents)
so menu bar issue is resolved...
Another issue is show/hide some custom command buttons...I have added some custom buttons in "cmdbar.file"
I want to show/hide them conditionally..this is the code I have written...but not working-
Dim filecmdbar As PDFXEdit.IUIX_CmdBar = pdfctrl.Inst.MainFrm(MainFrmCntforEditor - 1).View.CmdBar("cmdbar.file")
If filecmdbar IsNot Nothing Then
Dim cmdsaveasViewer As PDFXEdit.IUIX_CmdItem = filecmdbar.FindFirstItemByCmdName("cmd.Save_As")
If cmdsaveasViewer IsNot Nothing Then
cmdsaveasViewer.Cmd.Offline = True
cmdsaveasViewer.Cmd.Hidden = True
End If
end if
MainFrmCntforEditor is my count of mainfrms..
I also tried cmdsaveasViewer.show(false). If I load two windows one by one, the setting of last window overwrites that of first window.
Pls guide ...
Rgds
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Have you tried doing it inside/outside of this section?
Cheers,
Alex
Have you tried doing it inside/outside of this section?
Code: Select all
pdfCtl.Inst.LockCmdCustomizationEvent();
PDFXEdit.IUIX_Inst iuiInst = (PDFXEdit.IUIX_Inst)pdfCtl.Inst.GetExtension("UIX");
iuiInst.CmdManager.LockAllPanesUpdates();
//...
iuiInst.CmdManager.UnlockAllPanesUpdates();
pdfCtl.Inst.UnlockCmdCustomizationEvent();
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
I have tried writing the show/hide code both inside and outside the "lockupdates'..but no difference. I have a sample application to demonstrate this.
I you wish, I can send it to you.
Rgds
I have tried writing the show/hide code both inside and outside the "lockupdates'..but no difference. I have a sample application to demonstrate this.
I you wish, I can send it to you.
Rgds
Re: Editor UI changes when another window with pdfeditorx is loaded
HI Alex,
I have emailed you a sample application in vb.net. at the email id given by you earlier.
Charu
I have emailed you a sample application in vb.net. at the email id given by you earlier.
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Try doing this:
Cheers,
Alex
Try doing this:
Code: Select all
IUIX_CmdItem ci = firstMainFrame.View.CmdBar["cmdbar.file"].FindFirstItemByCmdName("cmd.save");
ci.Delete();
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
I did that and it worked for custom buttons. But not working for regular buttons like undo-redo, cut,copy,paste...etc.
Here is my code-
Dim ipastepos As Integer = pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.FindFirstItemByCmdName("cmd.paste")
Dim cmdpaste As PDFXEdit.IUIX_Cmd = pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.Item(ipastepos).Cmd
cmdpaste.Hidden = True
cmdpaste.Offline = True
Any suggestions...
I did that and it worked for custom buttons. But not working for regular buttons like undo-redo, cut,copy,paste...etc.
Here is my code-
Dim ipastepos As Integer = pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.FindFirstItemByCmdName("cmd.paste")
Dim cmdpaste As PDFXEdit.IUIX_Cmd = pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.Item(ipastepos).Cmd
cmdpaste.Hidden = True
cmdpaste.Offline = True
Any suggestions...
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi,
Any updates...I am running against time...release of our product is getting delayed...
Pls reply at the earliest.
Rgds
Charu
Any updates...I am running against time...release of our product is getting delayed...
Pls reply at the earliest.
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
As you can see in my sample, I am removing the default cmd.save command item from the Menu bar and it works correctly. In your code, I do not see that ci.Delete() is being used.
Cheers,
Alex
As you can see in my sample, I am removing the default cmd.save command item from the Menu bar and it works correctly. In your code, I do not see that ci.Delete() is being used.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Alex,
I get error with .Delete...
cmdpaste.delete- 'delete' is not a member of 'PDFXEdit.IUIX_Cmd'.
I also tried this-
Dim ipastepos As Integer = pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.FindFirstItemByCmdName("cmd.paste")
pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.DeleteItem(ipastepos)
does not work...
Rgds
I get error with .Delete...
cmdpaste.delete- 'delete' is not a member of 'PDFXEdit.IUIX_Cmd'.
I also tried this-
Dim ipastepos As Integer = pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.FindFirstItemByCmdName("cmd.paste")
pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.DeleteItem(ipastepos)
does not work...
Rgds
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Please read my code more carefully and see the type used there (it's not the IUIX_Cmd).
Cheers,
Alex
Please read my code more carefully and see the type used there (it's not the IUIX_Cmd).
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
I have not been able to get IUIX_CmdItem by doing this-
pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.FindFirstItemByCmdName("cmd.paste")
See the attached screenshot and give me code to hide Undo/redo buttons and cut/copy/paste buttons in my Viewer screen.
I need to show these buttons in my Editor screen but hide them in Viewer.
I read your code but was unable to get these buttons as IUIX_CmdItem .
Pls treat this as most urgent
Rgds
Charu
I have not been able to get IUIX_CmdItem by doing this-
pdfctrl.Inst.MainFrm(mainfrmCntViewer - 1).View.MenuBar.FindFirstItemByCmdName("cmd.edit").SubMenu.FindFirstItemByCmdName("cmd.paste")
See the attached screenshot and give me code to hide Undo/redo buttons and cut/copy/paste buttons in my Viewer screen.
I need to show these buttons in my Editor screen but hide them in Viewer.
I read your code but was unable to get these buttons as IUIX_CmdItem .
Pls treat this as most urgent
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Here are the steps to solve your problem:
1) Open the End-User Editor and right click on any command bar.
2) Try disabling different toolbars to find out where are the command items that you want to hide. 3) When you know this, look at my code and fill the gaps with the needed ID's.
As for the Right-Click menu, here's the topic on how to modify it:
https://www.pdf-xchange.com/forum3 ... 66&t=26300
If you do all of this step by step you will achieve what you need. Note that we won't do custom coding for you as this exceeds a support limits.
Cheers,
Alex
Here are the steps to solve your problem:
1) Open the End-User Editor and right click on any command bar.
2) Try disabling different toolbars to find out where are the command items that you want to hide. 3) When you know this, look at my code and fill the gaps with the needed ID's.
Code: Select all
IUIX_CmdItem ci = firstMainFrame.View.CmdBar["YOUR COMMAND BAR ID"].FindFirstItemByCmdName("COMMAND ID IN THE COMMAND BAR");
ci.Delete();
https://www.pdf-xchange.com/forum3 ... 66&t=26300
If you do all of this step by step you will achieve what you need. Note that we won't do custom coding for you as this exceeds a support limits.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
Thank you for the idea of using end user pdf editor for finding menus...I am now working with that...
Thank you for the idea of using end user pdf editor for finding menus...I am now working with that...
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Hi Alex,
I have decided not to show context menu in one of my windows. Here is the code that I wrote-
Private Sub pdfctrl_OnEvent(sender As Object, e As AxPDFXEdit._IPXV_ControlEvents_OnEventEvent) Handles pdfctrl.OnEvent
If (e.nEventID = nIDS(IDS.e_beforeShowContextMenu)) Then
e.pEvent.Handled = True
End If
End Sub
I have registered the event-
Me.eventbeforeShowContextMenu = Me.pdfctrl.Inst.Str2ID("e.beforeShowContextMenu", False)
pdfctrl.EnableEventListening2(Me.eventbeforeShowContextMenu, True)
My issue is that when I hide it in one window(myviewer), it is hidden in the other too (myEditor). Both the windows are open together at a time.
I wrote the same code with e.pEvent.Handled = false in myeditor window, but does not work
...Any ideas..how to fix this.
Rgds
Charu
I have decided not to show context menu in one of my windows. Here is the code that I wrote-
Private Sub pdfctrl_OnEvent(sender As Object, e As AxPDFXEdit._IPXV_ControlEvents_OnEventEvent) Handles pdfctrl.OnEvent
If (e.nEventID = nIDS(IDS.e_beforeShowContextMenu)) Then
e.pEvent.Handled = True
End If
End Sub
I have registered the event-
Me.eventbeforeShowContextMenu = Me.pdfctrl.Inst.Str2ID("e.beforeShowContextMenu", False)
pdfctrl.EnableEventListening2(Me.eventbeforeShowContextMenu, True)
My issue is that when I hide it in one window(myviewer), it is hidden in the other too (myEditor). Both the windows are open together at a time.
I wrote the same code with e.pEvent.Handled = false in myeditor window, but does not work
...Any ideas..how to fix this.
Rgds
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Hello Charu,
Well, in your case you can use the ActiveMainFrm or ActiveMainView property to see what frame or view is active - that is a way to distinguish them.
Cheers,
Alex
Well, in your case you can use the ActiveMainFrm or ActiveMainView property to see what frame or view is active - that is a way to distinguish them.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Editor UI changes when another window with pdfeditorx is loaded
Thanks...That did it...
Charu
Charu
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Editor UI changes when another window with pdfeditorx is loaded
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ