SmartTag TextRange Constructor

SyntaxEditor for Windows Forms Forum

Posted 17 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 17 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 17 years ago by Marianne
Avatar
Great! Thanks.

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

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.