Using the new OnShowHint event #40
pyscripter
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the SynEdit enhancements is the addition of the OnShowHint event (#28). This can be very useful for showing context-sensitive hints. PyScripter for instance uses this event to display code hints, debugger hints, syntax errors, etc.
Here is an example event handler that demonstrates how to use this event. The code is meant to show the hint "Spelling error" when the mouse rests on top of a spelling error. You can adapt the code to show a hint depending on the word at cursor, the highlighter attribute etc. The code sample also shows how to work with Indicators (#29).
Beta Was this translation helpful? Give feedback.
All reactions