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 / February 2005

Tip: Looking for answers? Try searching our database.

How to place code window in tool window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hercules Zeng - 24 Feb 2005 08:10 GMT
Experts,
 I made a tool window. I want to place a code window in tool window and
then I can edit code in tool window. Could anyone help me?

Thanks,
Hercules
Carlos J. Quintero [.NET MVP] - 24 Feb 2005 11:51 GMT
You need to use VSIP. See:

Hosting Code Editor in Tool Windows
http://blogs.msdn.com/dr._ex/archive/2004/08/29/222425.aspx

Signature

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

> Experts,
>  I made a tool window. I want to place a code window in tool window and
> then I can edit code in tool window. Could anyone help me?
>
> Thanks,
> Hercules
Hercules Zeng - 25 Feb 2005 06:10 GMT
Quintero,

 Thank you. I see your way and I had done similar with it. Please see the follows:
  hr = srpVsUIShell->CreateToolWindow(
                                   dwCreateToolFlags,
                                   0,
                                   srpCodeWin,
                                   CLSID_NULL,
                                   guidToolWindow,
                                   GUID_NULL,
                                   NULL,
                                   csCaption.GetBuffer(),
                                   NULL,
                                   &srpWindowFrame);
  Sorry, maybe I don't say clearly.  I have place codewindow in tool window and hook a language service. However, a problem confuses me.
  When the tool window is float, please see the right-bottom of the window and you can see a triangle. If the mouse hovers on the triange, we can resize the tool window. However, if set the tool window to dockable and drag it to bottom aligned with output tool window, I also see the triangle, and if resize the window, UI won't redraw. Forthermore, I try the case on output tool window but I found the triangle disappear when ouput window is set to dockable. So I want to know how to "disable" the triangle?

Thanks
Hercules  

> You need to use VSIP. See:
>
[quoted text clipped - 7 lines]
> > Thanks,
> > Hercules

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.