What is the best approach for displaying hint text?

SyntaxEditor for WPF Forum

Posted 12 years ago by Craig - Varigence, Inc.
Version: 11.1.0545
Avatar
As there doesn't seem to be a built-in way to show hint text in the SyntaxEditor, do you have any recommendation for the best way to implement it? Looking over the samples, a custom watermark adornment seems like the best approach - do you concur?

Thanks,

-Craig

Comments (3)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Correct, the adornment is best at this time unless you just overlay a hint over the entire control.


Actipro Software Support

Posted 12 years ago by Craig - Varigence, Inc.
Avatar
In your adornment samples, you register the AdornmentManagerProvider within the language's constructor. Is there a way to register the service after the language is constructed and still have it work, or does the adornment service have to be registered within the constructor?

Thanks,

-Craig
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Craig,

I'm not sure the service would work on existing views that use the language if you did that. You can however just create your IAdornmentManager and pass it the view you want to track, which is effectively what the adornment manager provider does when it detects new views. It stores the resulting instance in the view.Properties dictionary.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.