Menu

Cannot scroll through userList (editor.userListShow) with up/down cursor keys or mousewheel

Help
Karel A
2015-02-27
2015-02-28
  • Karel A

    Karel A - 2015-02-27

    In SciTE with python extension you can scroll up/down in the userList with the cursor keys.

    How can I do this in pythonscript for npp?

    example code:

    itemList = 'choice1 choice2 choice3 choice4 choice5 choice6 choice7 choice8'
    editor.userListShow(12, itemList)

     
  • Dave W.

    Dave W. - 2015-02-27

    Wait... huh? "SciTE with python extension" ???
    Did you mean "SciTE with Lua extension" ?
    Or are you saying that there is now an actual Python scripting extension for Scite? That does not depend on Lua?

    Very curious...

     
    • Karel A

      Karel A - 2015-02-27

      There is python extension for scite dating from 2011.
      See:
      https://code.google.com/p/scite-files/wiki/CustomBuilds_SciTEPython
      I could only run python scripts by modifying the 'callFromCmd' function in scite_extend.py (see readme.txt in scite_python_extend_0_5_win32.zip).

      def callFromCmd():
      ScApp.MsgBox('Called from cmd')
      itemList = 'choice1 choice2 choice3 choice4 choice5 choice6 choice7 choice8'
      ScEditor.UserListShow(12, itemList)

       
  • Dave W.

    Dave W. - 2015-02-28

    Hah! Wow. I had no idea that was out there. Very interesting. I'll have to look into that when I get some time. Just for grins.

    Thanks! ;)

    Good luck on your list issue. Wish I could help but UI stuff is not in my arena. :-|

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.