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. Image for the cookie policy date

underlines and tooltips

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

2 Replies

AD Administrator Syncfusion Team April 25, 2007 01:46 AM UTC

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 x April 29, 2007 06:26 PM UTC

thanks! that did the trick.

Loader.
Live Chat Icon For mobile
Up arrow icon