Print Page | Close Window

Docking pane tabs not updated

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=1362
Printed Date: 07 November 2025 at 3:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking pane tabs not updated
Posted By: Maye Johnson
Subject: Docking pane tabs not updated
Date Posted: 02 November 2004 at 10:45pm

I'm using XTP v9.51 and have several panes that are attached to each other, and the tabs are on the bottom.  When I load a file in one pane, I call SetTitle for that pane to update its title bar.  The problem is that the string for the tab isn't updated until I click on another tab.  To get around this, I call the pane manager's RedrawPanes function.

 m_pMyPane->SetTitle(szTitle);

m_paneManager.RedrawPanes();

In this function's class header file, I have the vars defined as:

 CXTPDockingPaneManager m_paneManager;

 CXTPDockingPane* m_pMyPane;

Am I managing panes incorrectly, or is this a bug in XTP?




Replies:
Posted By: Oleg
Date Posted: 03 November 2004 at 3:43am

Yes you can call RedrawPanes, but better don't use global CXTPDockingPane* pointers. instead use

FindPane() method.



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


Posted By: Maye Johnson
Date Posted: 04 November 2004 at 1:53am

FindPane() will return a CXTPDockingPane*, and then I can call the class function RedrawPane().  I've tried this and it doesn't update my tab string.



Posted By: Oleg
Date Posted: 05 November 2004 at 1:19am
So it doesn't work with RedrawPane() too?   Must.

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


Posted By: Maye Johnson
Date Posted: 07 November 2004 at 3:48pm

It works with RedrawPanes().  My thoughts are that the tab strings should be updated when SetTitle() is called, since the string in the pane's title is also the string in the tab.

I haven't stepped through the functions called in RedrawPanes().  Does calling this cause the object in each pane to be redrawn, or just the title bar and tabs?



Posted By: Oleg
Date Posted: 08 November 2004 at 12:24pm

Add RedrawPane() call. 

 In next version we will update tabs in SetTitle method.



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



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