Problem with Windowlist and docked MDIChild window
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=23685
Printed Date: 27 December 2024 at 8:52am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Problem with Windowlist and docked MDIChild window
Posted By: Kenton
Subject: Problem with Windowlist and docked MDIChild window
Date 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
|
Replies:
Posted By: Kenton
Date Posted: 28 August 2018 at 6:00am
|