Menu

SCI_SETWORDCHARS

2007-09-16
2012-11-14
  • Damjan Cvetko

    Damjan Cvetko - 2007-09-16

    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

     
    • Don HO

      Don HO - 2007-09-16

      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

       
      • Damjan Cvetko

        Damjan Cvetko - 2007-09-16

        Thanks Don.

        Best regards...
        -Zobo