I'm playing around with my dbgp plugin adding 'on mouse dwell' stuff.
When the mouse dwells on a variable, the plugin fetches the data from the server and displays is with SCI_CALLTIPSHOW.
In order to get the variable 'name' from SCI I had to manipulate SCI_SETWORDCHARS. Does N++ depend on a certain WORD CHAR setting? Is there a message or similar to unset what I did locally? Or does N++ handle this by itself? I did read the code, but couldn't find an answer...
Best regards.
-Zobo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Scince all the plugins use the same Scintilla instance, I strongly suggest you use SCI_SETWORDCHARS to get what you want, then use SCI_SETCHARSDEFAULT for restoring the normal Scintilla environment for the other plugins (and Notepad++).
Don
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone.
I'm playing around with my dbgp plugin adding 'on mouse dwell' stuff.
When the mouse dwells on a variable, the plugin fetches the data from the server and displays is with SCI_CALLTIPSHOW.
In order to get the variable 'name' from SCI I had to manipulate SCI_SETWORDCHARS. Does N++ depend on a certain WORD CHAR setting? Is there a message or similar to unset what I did locally? Or does N++ handle this by itself? I did read the code, but couldn't find an answer...
Best regards.
-Zobo
WORD CHAR setting is done on the Scintilla side.
Notepad++ modifies this setting only when the clickable link is enable and when user double clicks on the link.
After doing what it wants, Notepad++ restores the default WORD CHAR setting. Here's the demonstration :
http://notepad-plus.svn.sourceforge.net/viewvc/notepad-plus/PowerEditor/src/Notepad_plus.cpp?revision=35&view=markup
line # 1910~1935
Scince all the plugins use the same Scintilla instance, I strongly suggest you use SCI_SETWORDCHARS to get what you want, then use SCI_SETCHARSDEFAULT for restoring the normal Scintilla environment for the other plugins (and Notepad++).
Don
Thanks Don.
Best regards...
-Zobo