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

CXTPTabClientWnd tabs visibility

 Post Reply Post Reply
Author
Message
psih128 View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote psih128 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabClientWnd tabs visibility
    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
Back to Top
psih128 View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote psih128 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 18 March 2009 at 8:52am
Hi,
 
You need add TRUE paramter to Attach call.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
psih128 View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote psih128 Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
Back to Top
psih128 View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote psih128 Quote  Post ReplyReply Direct Link To This Post 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
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.064 seconds.