SmartTag TextRange Constructor

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Marianne
Avatar
I'm creating SmartTags and I would like the SmartTag TextRange to cover more than one character so that it's easier for the user to hover over. However, when I set the TextRange constructor argument to span 2 or three characters, the SmartTag that appears only ever covers one character width. Can you modify this behavior so that the width of the SmartTag is actually determined by the TextRange? Thanks.

------------------------------- Marianne

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Marianne,

What I did was add an IntelliPromptSmartTag.Add overload that accepts a custom span indicator. That way you can just inherit SmartTagSpanIndicator and override the DrawMarks method to draw the box as you would like or do anything else for that matter. This will be in the next maintenance release.


Actipro Software Support

Posted 13 years ago by Marianne
Avatar
Great! Thanks.

------------------------------- Marianne

The latest build of this product (v2020.1 build 0400) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.