Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Docking pane tabs not updated
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking pane tabs not updated

 Post Reply Post Reply
Author
Message
Maye Johnson View Drop Down
Groupie
Groupie


Joined: 16 October 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maye Johnson Quote  Post ReplyReply Direct Link To This Post Topic: Docking pane tabs not updated
    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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Maye Johnson View Drop Down
Groupie
Groupie


Joined: 16 October 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maye Johnson Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2004 at 1:19am
So it doesn't work with RedrawPane() too?   Must.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Maye Johnson View Drop Down
Groupie
Groupie


Joined: 16 October 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maye Johnson Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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

This page was generated in 0.062 seconds.