Quantcast
Channel: Codejock Developer Community : Docking Pane
Viewing all 40 articles
Browse latest View live

Docking Pane : HighlightActiveCaption problem

$
0
0
Author: cdiasdev
Subject: HighlightActiveCaption problem
Posted: 27 March 2017 at 2:04am

DockingPane1.PaintManager.HighlightActiveCaption = False doesn't works when DockingPane1.VisualTheme = ThemeVisualStudio2012. In all other options of DockingPane1.VisualTheme  works perfectly. Is this a bug? I'm using 16.3.1 version.

Docking Pane : HighlightActiveCaption problem

$
0
0
Author: flauzer
Subject: HighlightActiveCaption problem
Posted: 19 May 2017 at 8:51am

the same here

but in 17.1
•Fixed drawing active pane captions when HighlightActiveCaption is OFF. Themes: Office 2013, VS 2012, VS 2015.

Docking Pane : pane.Select() can cause Application to crash

$
0
0
Author: itsmg
Subject: pane.Select() can cause Application to crash
Posted: 30 May 2017 at 6:31am

Hello everyone!

When you attempt to use pane.Select() in the AxXtremeDockingPane.Action-Event when e.action == DockingPaneAction.PaneActionActivated when dealing with Grouped-Autohide Panels (AxXtremeDockingPane.Options.HideGroupOnButtonClick = true) the application crashes.

To reproduce see the file attached and the instructions below. Used Version is 17.3.0.0

 - Autohide "Pane A"
 - Quickly select "Pane A" then "Pane B". Then quickly pin either of them.

This can either cause a crash or a corrupted UI

uploads/5529/DockingPane.zip

Docking Pane : To add custom button on title bar of docking pane

$
0
0
Author: gagandeep
Subject: To add custom button on title bar of docking pane
Posted: 06 October 2017 at 6:03am

Hey there,

I am using your ActiveX components and need to ask is there any way to add custom button on the top left of title bar of Docking Pane near the "X" close buttons and a click event to handle it.

or if that is not possible,

then is there any way by which i can change the icon of DropDown arrow which comes near "X" close button. i get its click event but i need to change its icon by custom icon.

I have been tiring very hard for the past few days to find a solution for it.

Your help would be appreciated.

Regards
Gagandeep

Docking Pane : To add custom button on title bar of docking pane

$
0
0
Author: olebed
Subject: To add custom button on title bar of docking pane
Posted: 07 October 2017 at 1:37pm

Hello Gagandeep,

These buttons are hardcoded. You can add your custom buttons to context menu of title. See our .NET  sample
DockingPane\VB.NET\MDISample\frmMain.vb

C = MDIDockingPaneManager.CreatePane(5, 200, 120, DockingDirection.DockLeftOf, B)
C.Title = "Pane 5 - Menu Button"
C.Options = XtremeDockingPane.PaneOptions.PaneHasMenuButton

Private Sub MDIDockingPaneManager_PanePopupMenu(ByVal sender As Object, ByVal e As AxXtremeDockingPane._DDockingPaneEvents_PanePopupMenuEvent) Handles MDIDockingPaneManager.PanePopupMenu
    If e.pane.Id = 5 OrElse e.pane.Id = 2 Then
        paneContextMenu.MenuItems.Clear()
        Dim newItem As System.Windows.Forms.MenuItem
        Dim x As Integer
        For x = 0 To 14
            newItem = New System.Windows.Forms.MenuItem(MyColor(x).ToString())
            AddHandler newItem.Click, AddressOf mnuPanePopupItem_Click
            paneContextMenu.MenuItems.Add(x, newItem)
            If arrPanes(MDIDockingPaneManager.ActivePane.Id - 1).rtfTextBox.BackColor.Equals(MyColor(x)) Then
                newItem.Checked = True
            End If
        Next x
        paneContextMenu.Show(Me, New Point(e.x - Me.Left - 4, e.y - Me.Top - MDIDockingPaneManager.Top + 6))
    End If
End Sub


The buttons are drawn by graphic primitives (symbols) which defined in codejock's font.  You can change this maybe only if use C++ version of library.

Regards,
 Oleksandr Lebed

Docking Pane : To add custom button on title bar of docking pane

$
0
0
Author: gagandeep
Subject: To add custom button on title bar of docking pane
Posted: 09 October 2017 at 5:07am

Hey there,

I don't need the custom buttons in the context menu, i need them on the title bar only like the "X" Close button or pin button comes.
I am using ActiveX components (C#), so if it is possible please provide with a solution.
And if not,
then a way to change the icon of the DropDown arrow which comes near "X" close button.

Please give some solution or workaround to it.

Regards,
Gagandeep Kaur

Docking Pane : [solved] icon in Pane title with VS 2015 themes

$
0
0
Author: Vycheslav
Subject: [solved] icon in Pane title with VS 2015 themes
Posted: 27 November 2017 at 5:09am

AX CodeJock 18.2.0 versions (or other before) Visual Studio 6 or Visual Studio 2017

Pane title with icon (Visual Studio 2015 Light)


Pane title with icon (Microsoft Office 2016 DarkGray)


This is themes bug or my mistake?

Docking Pane : [solved] icon in Pane title with VS 2015 themes

$
0
0
Author: rdhd
Subject: [solved] icon in Pane title with VS 2015 themes
Posted: 28 November 2017 at 1:41pm

After pulling 18.0.1 we found some dialogs we had that used a ribbon had a similar looking bug. The tab region where we had a single tab displayed black in the entire area to the right of the tab. We were calling EnableFrameTheme(FALSE). I change to send in TRUE and it "fixed" the issue. But of course, the entire look of the dialog changed to boot.

Docking Pane : [solved] icon in Pane title with VS 2015 themes

$
0
0
Author: Vycheslav
Subject: [solved] icon in Pane title with VS 2015 themes
Posted: 29 November 2017 at 3:30am

This dialog placed on the floating pane (DockingPane Object). See the icon on title bar. Title text putting under icon with all Visual Studio 2015 themes and putting correcttly with other themes. Property ...Options.ThemedFloatingFrames set to True.

Docking Pane : [solved] icon in Pane title with VS 2015 themes

$
0
0
Author: olebed
Subject: [solved] icon in Pane title with VS 2015 themes
Posted: 05 December 2017 at 11:17pm

Hello Vycheslav,

Thank you for information. I have solved this issue. Fix will be available in next release.
Problem was in drawing order in method CXTPDockingPaneVisualStudio2015Theme::DrawTitleBar
The same issue in VS2012 theme (CXTPDockingPaneVisualStudio2012Theme::DrawTitleBar)
// old version
void CXTPDockingPaneVisualStudio2015Theme::DrawTitleBar(CDC *pDC, CXTPDockingPaneBase *pPane, CRect rcCaption, BOOL bVertical)
{
......

    pDC->SetTextColor(pColorSet->m_clrText);
    int nWidth = DrawCaptionText(pDC, pPane->GetTitle(), rcCaption, bVertical, TRUE);

    if (NULL == hCustomBrush)
    {
        CRect rcGripper(rcCaption);

        if (bVertical)
        {
            rcGripper.top += nWidth + XTP_DPI_Y(5);
            rcGripper.left += ((rcCaption.Width() - XTP_DPI_X(5)) / 2);
        }
        else
        {
            rcGripper.top += ((rcCaption.Height() - XTP_DPI_Y(5)) / 2);
            rcGripper.left += nWidth + XTP_DPI_X(5);
        }

        DrawGripper(pDC, rcGripper, pColorSet->m_clrGripper, bVertical);
    }

    DrawCaptionIcon(pDC, pPane, rcCaption, bVertical);
    DrawCaptionButtons(pDC, pPane->GetCaptionButtons(), rcCaption, pColorSet->m_clrText, XTP_DPI_X(16), 0, bVertical);
}

// fixed version
void CXTPDockingPaneVisualStudio2015Theme::DrawTitleBar(CDC *pDC, CXTPDockingPaneBase *pPane, CRect rcCaption, BOOL bVertical)
{
......

    DrawCaptionIcon(pDC, pPane, rcCaption, bVertical);
    
    pDC->SetTextColor(pColorSet->m_clrText);
    int nWidth = DrawCaptionText(pDC, pPane->GetTitle(), rcCaption, bVertical, TRUE);

    DrawCaptionButtons(pDC, pPane->GetCaptionButtons(), rcCaption, pColorSet->m_clrText, XTP_DPI_X(16), 0, bVertical);
    
    if (NULL == hCustomBrush)
    {
        CRect rcGripper(rcCaption);

        if (bVertical)
        {
            rcGripper.top += nWidth + XTP_DPI_Y(5);
            rcGripper.left += ((rcCaption.Width() - XTP_DPI_X(5)) / 2);
        }
        else
        {
            rcGripper.top += ((rcCaption.Height() - XTP_DPI_Y(5)) / 2);
            rcGripper.left += nWidth + XTP_DPI_X(5);
        }

        DrawGripper(pDC, rcGripper, pColorSet->m_clrGripper, bVertical);
    }
}

Regards,
 Oleksandr Lebed

Docking Pane : Shortcutbar not able to host on a Dockingpane

$
0
0
Author: JoukevRossum
Subject: Shortcutbar not able to host on a Dockingpane
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()
        {
            try
            {
                // 
                // 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);
                ExceptionLogger.LogError(dmsEx);
            }
        }

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

Docking Pane : Problem with Windowlist and docked MDIChild window

$
0
0
Author: Kenton
Subject: Problem with Windowlist and docked MDIChild window
Posted: 25 July 2018 at 7:52am

Hi,

I am using CommandBars and DockingPane from V18.4.0.

We have recently upgraded to CJ docking from a previous system and because the CJ docking is more flexible we now wish to provide the option to dock one of our forms that was previously an MDIChild. However, for backward compatibility we wish to allow it to remain as an MDIChild for those who want that.

We have a a window list on a menu in the CommandBars (using ID XTP_ID_WINDOWLIST) that works fine with the form just as an MDIChild (showing this and other windows all as expected).

But, when we try to dock the MDIChild form the window list just disappears from the menu although everything else seems to work OK.

This can easily be reproduced in one of your samples as follow:
1. Load the sample project from <Codejock root>\Samples\DockingPane\VB\MDISample
2. Run the program and observe the window list working correctly on the Window menu
3. Stop the program
4. Open the frmPane form
5. Change the MDIChild property to True
6. Run the program again
7. The window list has disappeared from the Window menu but everything else seems to work as before and there are no errors.

Since MDIChild is read-only at runtime the only workaround is to create and maintain two copies of this form one MDI and one non-MDI which is extra work and prone to errors.

I understand if docked MDIChild forms did not appear on the window list and in fact this is in most cases desirable, but this is a problem.

Kenton

Docking Pane : Problem with Windowlist and docked MDIChild window

$
0
0
Author: Kenton
Subject: Problem with Windowlist and docked MDIChild window
Posted: 28 August 2018 at 6:00am

Hi,

Any thoughts?

Kenton

Docking Pane : Dialog Panel Minimized not working

$
0
0
Author: vikascool4u
Subject: Dialog Panel Minimized not working
Posted: 12 February 2020 at 6:13am

Hi 

I have created a dialog box application having two panel such as follows:-
CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(IDR_PANE1, XTP_DPI(CRect(0, 0, 263, 320)), xtpPaneDockMiniWnd);

 CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane(IDR_PANE2, XTP_DPI(CRect(0, 0, 200, 320)), xtpPaneDockRight, pwndPane1); 

when I click on pane1, it should be minimized and clicking the mimize tab will open it back, similar to outlook bar panel style.
But its not working for me.

I changed the  code:-
CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(IDR_PANE1, XTP_DPI(CRect(0, 0, 263, 320)), xtpPaneDockLeft);
Using the above code, I am able to achive outlook style panel,
but now both the panel won't fit in the dialog box and there is some additional space left on the right side of panel 2
I try to increase the size of panel 1 or panel 2 , but it is keeping the space on the right side always

I would like to add two panel in the dialog based and match it with the style of outlook panel, where clicking on any auto hide, make that panel minimized and appear as iamge showed below

and panel 2 occupy whole screen 

Please suggest me the right approach to do so?

Docking Pane : Dialog Panel Minimized not working

$
0
0
Author: vikascool4u
Subject: Dialog Panel Minimized not working
Posted: 13 February 2020 at 2:24am

I had resolved my problem by myself...But surprised, here no one respond to the query on time:(

Docking Pane : Dialog Panel Minimized not working

$
0
0
Author: vikascool4u
Subject: Dialog Panel Minimized not working
Posted: 13 February 2020 at 3:22am

Hi Experts,

The tab bar is not visible in my application?

Any idea , how to make it visible?

Docking Pane : Move Pane frome one Form to another form

$
0
0
Author: muemic62
Subject: Move Pane frome one Form to another form
Posted: 24 August 2020 at 2:21pm

Hello,
is it possible to create 2 Forms and switch my panes from the first form (with the dockingmanager) to a second form und back?

If yes:
- is there an example?
- can I save those forms to open the application with the last settings?

Thank you!
(VB6 developer)

Docking Pane : Version 20.0.0 Pane repainting bug

$
0
0
Author: Vycheslav
Subject: Version 20.0.0 Pane repainting bug
Posted: 16 August 2021 at 6:15am

Project Samples --> DockingPane --> VB --> SDISample. After actions: dock, undock, attach, detach, resize docked panes panes repaints crashed. This bug appiars with any display styles.
Components of this version cannot be used in any applications.

Docking Pane : Version 20.0.0 Pane repainting bug

$
0
0
Author: agontarenko
Subject: Version 20.0.0 Pane repainting bug
Posted: 18 August 2021 at 6:16am

Hello,

Unfortunately we are unable to re-produce the problem. Can you please provide more detailed information and steps to take, screenshots or video can be useful as well.

Regards,
Artem Gontarenko

Docking Pane : Version 20.0.0 Pane repainting bug

$
0
0
Author: Vycheslav
Subject: Version 20.0.0 Pane repainting bug
Posted: 18 August 2021 at 7:05am

Install components 20.0.0 (with installed or uninstalled other version).
Open project SDISample (VB), run it.

Window showing up


Deatach Pane C with mouse.

Main window repaint crashed. A similar problem occurs in our compiled applications.

OS: Windows 10 Pro; Version 20H2; OS build 19042.1165
Microsoft Visual Basic 6.0 (SP6) 

Viewing all 40 articles
Browse latest View live