![]() |
Docking pane tabs not updated |
Post Reply
|
| Author | |
Maye Johnson
Groupie
Joined: 16 October 2004 Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Topic: Docking pane tabs not updatedPosted: 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.
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Maye Johnson
Groupie
Joined: 16 October 2004 Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 November 2004 at 1:19am |
|
So it doesn't work with RedrawPane() too? Must.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Maye Johnson
Groupie
Joined: 16 October 2004 Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |