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 / IDE / November 2005

Tip: Looking for answers? Try searching our database.

VS2005 Plugin with custom tooltip in c# code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Amesberger - 15 Nov 2005 15:17 GMT
Hi,
I'm currently working on a VS.NET 2005 plugin, and I need to show a custom
tooltip info in the C# code window, similar to the parameter info which is
displayed when typing a function name and bracket open.
Is there a way to do this?

Here is another problem: I managed to listen to the
EnvDTE80.TextDocumentKeyPressEvents event, but is there an event for
listening to selection changes, when the user moves around the cursor?
SelectionEvents.OnChange only fires when selecting another file in the IDE.

Thanks in advance!

greetings,
Daniel Amesberger
"Gary Chang[MSFT]" - 16 Nov 2005 13:03 GMT
Hi Daniel,

>I'm currently working on a VS.NET 2005 plugin, and I need to show a custom
>tooltip info in the C# code window, similar to the parameter info which is
>displayed when typing a function name and bracket open.

It appears you need a custom text marker to display the tooltip with C#
code, A text marker is a floating range of text in a buffer that can affect
the display and behavior of a region of text. Markers include breakpoints,
bookmarks, wavy underlines, and read-only regions. Please refer to the
corresponding VS Environment SDK doc and the follwoing Dr. Ex's WebLog
article:

How to: Create Custom Text Markers
ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VSSDK.v80/dv_search/html/6e32ed81-c60
4-4a32-9012-8db3bec7c846.htm

How do I implement a custom Text marker?
http://blogs.msdn.com/dr._ex/archive/2004/06/09/152220.aspx

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Daniel Amesberger - 16 Nov 2005 14:06 GMT
Thanks!
I currently solved that using some API calls, and it works very well.
The custom text marker seems to be the better solution, I'll take a look at
it.

Another question:
I'm listening to the OnBuildDone event, and do some script creation there.
When an error occurs I'd like to add it to the error list.
Is there a way to do that? I can only access the task list, but the error
list is read-only...

best regards, Daniel

> Hi Daniel,
>
[quoted text clipped - 31 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
"Gary Chang[MSFT]" - 17 Nov 2005 08:50 GMT
Hi Daniel,

>When an error occurs I'd like to add it to the error list.
>Is there a way to do that?

I am afraid there is no way to do this from an add-in in VS 2005, we will
improve the Error list support through DTE interfaces in the nexe version
of Visual Studio.

For the issue about how to listen to the selection changes in text editor,
I suggest you take a look on the IVsTextViewEvents::OnChangeCaretLine to
track changes between lines. But there may no be a mechanism to detect
column changes.

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "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.