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

Tabbed SDI

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


Joined: 15 May 2003
Location: Canada
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote clintsinger Quote  Post ReplyReply Direct Link To This Post Topic: Tabbed SDI
    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

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: 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
Back to Top
ddyer View Drop Down
Groupie
Groupie
Avatar

Joined: 01 December 2003
Location: United States
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddyer Quote  Post ReplyReply Direct Link To This Post 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. 

 

Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2005 at 7:57pm
Is the TabManager able to do this yet?
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.125 seconds.