Print Page | Close Window

Tabbed SDI

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=321
Printed Date: 13 October 2025 at 6:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabbed SDI
Posted By: clintsinger
Subject: Tabbed SDI
Date Posted: 31 December 2003 at 2:00pm

Hi All.

I have a program where I would like to have multiple views to a single document.  But I also want to have each view to have a tab like I would in an MDI application with CXTPTabClientWnd.  Is there any way to accomplish this?

Cheers and Happy New Year!

Clint Singer




Replies:
Posted By: Oleg
Date Posted: 03 January 2004 at 2:16am
We are currenlty working with TabManager, this feature will be available in the end of January.

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


Posted By: ddyer
Date Posted: 27 January 2004 at 3:46pm

clintsinger,

You can do this with CXTPTabView.  I have an SDI application with tabs for multiple views to a single document.  Just modify the generated CMyAppView class to inherit from CXTPTabView.

Then, if you want to add a view/tab, I just do this:

AddView(_T(title.GetBuffer()), RUNTIME_CLASS(MyClassView), GetDocument(), NULL, -1, 0);

where MyClassView is the view to create for the tab.  For example,  CXTListView if you want a list.

The above technique has a drawback: Users can't drag/rearrange tabs like they can in visual C++.  Its also a bit indirect to determine which tab is frontmost (you get a wnd* ptr rather than a tab index).

Oleg's tabmanager sounds like it would be really helpful. 

 



Posted By: Kenneth
Date Posted: 28 February 2005 at 7:57pm
Is the TabManager able to do this yet?



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