Print Page | Close Window

Active MDI toolbar behavior with floating MDI

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
Printed Date: 18 June 2024 at 11:00pm
Software Version: Web Wiz Forums 12.04 -

Topic: Active MDI toolbar behavior with floating MDI
Posted By: franji1
Subject: Active MDI toolbar behavior with floating MDI
Date Posted: 20 September 2022 at 12:28pm
I want to push this discussion to its own topic/thread which was brought up here regarding "Active" MDI behavior when using the new floating MDI feature:" rel="nofollow - Toolkit Pro and Suite Pro v20.2 Released! - Codejock Developer Community

We are wanting to use XTP 20.3 with VS 2019.

We built the GUI_VisualStudio sample app.  When you float an MDI file and give the floating MDI child focus, the Save button CCmdUI status and OnClick behavior are applied to the Active Main Frame MDI window, not the focused MDI floating view.

The actual VS 2019 supports tear-off MDI children and the main toolbar behavior is applied as expected when a floating MDI child has focus.  This is the desired behavior.

So the question becomes, without that behavior, we will need to have a local toolbar (toolbar set?) on every floating MDI view that replicates a subset of the main frame's toolbar set?

I'm do not want to trivialize the solution - the desired behavior is simple to verbalize, but I realize the solution is non-trivial (my knowledge of intimate MFC internals is limited, but this I believe is true):
Message routing gets strange
Active MDI behavior get strange
MDIGetActive behavior comes into question
MDIActivate similarly (can it be called on a floating MDI view?)

Or is a better perspective to accept that it is similar to a dockable/floatable view, except that it can (easily) be "docked" as an MDI child?

EDIT: Please ignore this post - I obviously was not seeing what I thought I saw.  So far, GUI_VisualStudio is behaving as expected.  Apologies.

XTP 13.3
migrating to XTP 20.3

Posted By: franji1
Date Posted: 20 September 2022 at 1:07pm
Now I see what I saw LOL

I had ONE floating MDI child, but I CLOSED all the "docked" MDI children, so when I had focus on the floating MDI child, I expected the SAVE/SAVE-ALL icons to STILL BE ENABLED, but they were DISABLED:

This could be a bug in the GUI_VisualStudio SAMPLE, or a bug in the XTP Toolkit??

XTP 13.3
migrating to XTP 20.3

Posted By: agontarenko
Date Posted: 25 October 2022 at 6:42am

I'm glad to inform you that the issue has been addressed and fixed.

Artem Gontarenko

Posted By: franji1
Date Posted: 25 October 2022 at 9:13am
Great!  Thanks!!

XTP 13.3
migrating to XTP 20.3

Print Page | Close Window

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