We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

underlines and tooltips

Thread ID:

Created:

Updated:

Platform:

Replies:

59781 Apr 21,2007 10:14 PM Apr 29,2007 02:26 PM Windows Forms 2
loading
Tags: EditControl
xx
Asked On April 21, 2007 10:14 PM

I'm using underlines to highlight syntax errors dynamically. Is there and way to directly associate a tooltip with underlined text?

I've tried saving away the points where the error is found (the points used to make the underline) and then use that information in the UpdateContextToolTip event handler. This almost works but the problem is that if the user collapses or expands a region after the error was detected, the tooltip won't follow the underlined text (which was moved due to the collapse/expand).

Any thoughts on how to do this better?

-travis

Administrator [Syncfusion]
Replied On April 24, 2007 09:46 PM

Hi Travis,

It is possible to display the tooltip after a region is collapsed or expanded using the ConvertVirtualPositionToPhysical and PointToPhysicalPosition methods. I have
attached a sample that illustrates this. Let me know if this meets your requirements.

Thanks for your patience.

Regards,
Ebenezer.P

rel='nofollow' href="http://websamples.syncfusion.com/samples/Edit/59781/main.htm">http://websamples.syncfusion.com/samples/Edit/59781/main.htm

x
Replied On April 29, 2007 02:26 PM

thanks! that did the trick.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;