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

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


Viewing all articles
Browse latest Browse all 40

Trending Articles