Print Page | Close Window

Shortcutbar not able to host on a Dockingpane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
Printed Date: 01 March 2024 at 5:33am
Software Version: Web Wiz Forums 12.04 -

Topic: Shortcutbar not able to host on a Dockingpane
Posted By: JoukevRossum
Subject: Shortcutbar not able to host on a Dockingpane
Date Posted: 30 January 2018 at 11:07am
Hi All,

I'm trying to put a Shortcutbar on a Dockingpane but I can't seem to get it to work....

I'm got 3 panels
 - panelShort
 - panelDocuments
 - panelPreviewer

What is on the panel is in the name so I'm not going further into details.

So this is the code for creating the Dockingpanels and attaching the Handle of the Panels to the corresponding DockingPanes

private void CreateDockingPanes()
                // DockingPaneManager

                this.DockingManager = DockingPaneCC.DockingPaneManager(this);
                this.DockingManager.AttachPaneEvent += this.DockingManager_AttachPaneEvent;
                DockingManager.ScaleMode = XTPScaleMode.xtpScalePixel;

                Thema.SetVensterThema(null, null, MainForm.Instance.DockingPaneGlobalSettings, DockingManager, MainForm.Instance.ReportControlGlobalSettings, null, null, null);

                PDetails = DockingManager.CreatePane(1, ShortcutBar.Width, 50, DockingDirection.DockTopOf);
                PDetails.Title = "Dossiers";
                PDetails.Options = PaneOptions.PaneNoCloseable | PaneOptions.PaneNoHideable | PaneOptions.PaneNoFloatable;
                PDetails.Handle = panelShort.Handle.ToInt32();

                PDocs = DockingManager.CreatePane(2, 250, 250, DockingDirection.DockRightOf, PDetails);
                PDocs.Title = "Documenten";
                PDocs.Options = PaneOptions.PaneNoCloseable | PaneOptions.PaneNoHideable | PaneOptions.PaneNoFloatable;
                PDocs.Handle = panelDocumentenEmails.Handle.ToInt32();

                PPreviewer = DockingManager.CreatePane(3, 250, 100, DockingDirection.DockRightOf, PDocs);
                PPreviewer.Title = "Voorbeeld weergave";
                PPreviewer.Options = PaneOptions.PaneNoCloseable | PaneOptions.PaneNoHideable | PaneOptions.PaneNoFloatable;
                PPreviewer.Handle = panelPreviewer.Handle.ToInt32();

                DockingManager.Options.HideClient = false;
            catch (Exception ex)
                var dmsEx = new DmsException("Fout bij het initialiseren van DockingPanes", 339, ex);

When I execute this code, the result is this:

What is happening.....?

I hope someone is able to help me!!

Best regards,

Jouke van Rossum

Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 8.1 (x64)
Language: Visual Studio 2012 ActiveX C#

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 -
Copyright ©2001-2021 Web Wiz Ltd. -