SmartTag TextRange Constructor

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Marianne
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 14 years ago by Actipro Software Support - Cleveland, OH, USA
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 14 years ago by Marianne
Great! Thanks.

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

The latest build of this product (v21.1.0) was released 22 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.