Print Page | Close Window

Problem in MDITabWindow Initially Docked Pane/View

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15796
Printed Date: 21 June 2025 at 2:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem in MDITabWindow Initially Docked Pane/View
Posted By: grahamf
Subject: Problem in MDITabWindow Initially Docked Pane/View
Date Posted: 07 December 2009 at 5:12pm
Hi there,

Still evaluating here, and I have run into a problem with the sample MDITabWindow (the one under ToolkitPro).

After creating an initial document (Hello or Bounce), if you then use the menu to make it dockable, the pane gets initially docked to the right but it does not appear activated - that is, the caption remains grey (or whatever the theme colour to indicate inactive) even when you click in the view or on the caption.  Dragging the splitter or floating then redocking it will however set the caption to indicate active.

Also, if you create another docked view after the initial one, the second docked view is also inactive, but clicking in the first view will make the first view active, and both then correctly reflect their active state.  It also works if you create an second document and then click back on the initially docked view.

What is the fix for it not initially indicating the docked pane is active?

Cheers,
Graham




Replies:
Posted By: Oleg
Date Posted: 08 December 2009 at 8:45am
Here workaround to refresh focus:
 
Add it in the end of CMainFrame::DockFrame:
 
 SetFocus();
 m_paneManager.UpdatePanes();
 ActivateDockableFrame(pFrameNew);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: grahamf
Date Posted: 09 December 2009 at 11:22am
G'day Oleg,

That worked a treat thank you!

But I have another problem with this sorry - when the MDITabWindow application has an active (focued) pane and loses (application) focus, that pane does not seem to be reactivated (or refocused?) when the application regains focus (say by hitting the application caption bar or using task switching).

The GUI_VisualStudio sample does however seem to remember the last active pane when the application regains focus, so I guess it has something to do with the frame/document/view nature of the child?  Or is there some other difference between the two projects?

Thanks in advance.

Cheers,
Graham



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net