Print Page | Close Window

CXTPTabClientWnd tabs visibility

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=13711
Printed Date: 22 June 2025 at 11:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd tabs visibility
Posted By: psih128
Subject: CXTPTabClientWnd tabs visibility
Date 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



Replies:
Posted By: psih128
Date Posted: 17 March 2009 at 5:07pm
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


Posted By: Oleg
Date Posted: 18 March 2009 at 8:52am
Hi,
 
You need add TRUE paramter to Attach call.


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


Posted By: psih128
Date Posted: 18 March 2009 at 10:37am
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?


Posted By: Oleg
Date Posted: 19 March 2009 at 1:53am
Hi,
 
Call m_wndClient.OnWorkspaceCommand(XTP_ID_WORKSPACE_NEWVERTICAL); after you create View.


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


Posted By: psih128
Date Posted: 20 March 2009 at 5:27pm
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



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