Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / September 2005

Tip: Looking for answers? Try searching our database.

Multi-tabbed view

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrbig - 13 Sep 2005 10:21 GMT
Zitat from help (topic Logical View and Physical View): "Editors can also
create multi-tabbed views on one DocView object, like the HTML editor, which
has an HTML tab and a Design tab."

How to create multi-tabbed view? Which interface is responsible for?
(IVsMultiViewDocumentView is optional and not suitable)
"Ed Dore [MSFT]" - 14 Sep 2005 02:01 GMT
I did this by implementing IVsMultiViewDocumentView on my editor object
(which was derived from the following):

    public class MultiViewEditor : System.Windows.Forms.UserControl,
        IVsWindowPane,
        IOleCommandTarget,
        IVsMultiViewDocumentView,
        IVsWindowFrameNotify,
        IVsWindowFrameNotify2

This particular package was sort of a proof of concept for another
customer, and was built against Whidbey Beta1 (which I don't have installed
anymore), so it's not exactly in a buildable/testable state at the moment.

Essentially, what I had was several different "view controls" (derived from
UserControl), that were created on demand, and parented on the
MultiViewEditor control. Then I just hide/show the appropriate control from
my ActivateLogicalView implementation.

You also have to register your logical views in the registry. Each "view
control" was associated with a different guid, so I used/applied the
RegisterEditorLogicalViewAttribute for each logical view, on my main
package object.

I never did get around to implementing a tab control, but if memory serves,
I did add a couple of menu commands to switch between logical views. I'd be
more than happy to zip it up and pass it along. It was built against Beta1
of Whidbey, so it won't compile or build against the later drops, nor will
it compile against Everett. But it might give you some ideas to start.

Feel free to send me an email (just remove the ".online" portion of my
email address in the From: line), and I'll send along a copy.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.