Menu

#1731 SCN_DWELLSTART never fired

Bug
closed-works-for-me
5
2015-06-02
2015-06-01
britemma
No

Hello,
I had a DWELLSTART notification action in my program for a while, and now, the event is never fired. Is there a problem with the notification. I have set the SCI_SETMOUSEDWELLTIME to 500ms but it never seem to go into the notification.
Does somebody have this problem ?
Thanks

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-06-01

    There were significant changes with timers in 3.5.0 to decrease power use so you could examine the changes made then.

    Dwell works for me in SciTE 3.5.6 on Windows, Linux and OS X with

    function OnDwellStart(pos, word)
        if pos == 0 and word == '' then
            editor:CallTipCancel()
        else
            editor:CallTipShow(pos, pos .. " " .. word)
        end
    end
    
    function OnSwitchFile()
        scite.SendEditor(SCI_SETMOUSEDWELLTIME, 1000)
    end
    
     
  • Neil Hodgson

    Neil Hodgson - 2015-06-01
    • labels: --> scintilla, dwell
    • status: open --> open-works-for-me
    • assigned_to: Neil Hodgson
     
  • britemma

    britemma - 2015-06-02

    Hi,
    thanks for your answer Neil. With your example I got it to work it was effectively the timer changes.
    Thanks again :)

     
  • Neil Hodgson

    Neil Hodgson - 2015-06-02
    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.