![]() |
CXTPTabClientWnd tabs visibility |
Post Reply ![]() |
Author | |
psih128 ![]() Newbie ![]() Joined: 12 March 2009 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 17 March 2009 at 3:32pm |
Hi.
In our app we have several general purpose views which are not closable, so they are always present on the tab control. when we have a lot of documents opened, the tabs for those general purpose views are shifted to the left and thus not visible. Is it possible to make a tab sticky, so it's always visible, independently of the number of opened tabs? If no, what might be an alternative? Perhaps creating two separate tab controls. One for the general purpose views, another for document views? Thanks Anton |
|
![]() |
|
psih128 ![]() Newbie ![]() Joined: 12 March 2009 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Ok, I have spnet some time looking at the classes and looks like CXTPTabClientWnd supports tab groups - sounds like the feature, I'm looking for. But I can not figure out how to crate groups for the default implementation of CXTPTabClientWnd. Any hints here?
Thanks Anton |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You need add TRUE paramter to Attach call.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
psih128 ![]() Newbie ![]() Joined: 12 March 2009 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Oleg,
I've done that, but id does not help much. How do I create separate tab groups and make the views to appear in a specific group? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Call m_wndClient.OnWorkspaceCommand(XTP_ID_WORKSPACE_NEWVERTICAL); after you create View.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
psih128 ![]() Newbie ![]() Joined: 12 March 2009 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
Fist I have to mention that I'm still uwing version 12.0.1 of the toolkit. Another issue I encountered, is that when I enable workspaces using the second parameter in the Attach function, my app assert here: XTPTabClientWnd.cpp, line 1440 #ifdef _DEBUG if (m_bEnableGroups) { ASSERT((pChildWnd->GetStyle() & WS_MAXIMIZE) == 0); } #endif even tough I have added the WS_MAXIMIZE style in PreCreateWindow of my CGenericChildFrame derived class. If I dismiss the assertion messages, the application still asserts somewhere in Windows's viewscrtl.cpp in function GetScrollPosition of CScrollView (one of my views is derived from CScrollView) ... if (m_nMapMode != MM_TEXT) { ASSERT(m_nMapMode > 0); // must be set ... Is it something to deal with the outdated version I'm using? Is there any demo project to see how to use Groups feature properly? Thanks Anton |
|
![]() |
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 |