Hints not disappearing.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #71103
    Alan Montgomery
    Participant

    I am seeing an issue with hints not timing out.
    When first run hints timeout as normal.
    However if some component shows a hint using THintWindow (or a class derived from it) then all subsequent hints shown with the default hint class don’t timeout, and TApplication.HideHint does not work.
    The only way to get rid of the hint is to move the mouse out of the control, or to a position to show a new hint.
    Calling acAlphaHints.Manager.HideHint also hides it.

    TApplication.HideHint is exiting because FHintWindow.HandleAllocated is returning false.
    If I modify TacPngHintWindow.Create to call HandleNeeded then it times out correctly and TApplication.HideHint works

    This is with Delphi Berlin
    AlphaControls v16.24

    #71104
    Lasse
    Participant

    I have not noticed such behavior. Have you dropped the AlphaHints (TsAlphaHints) component into your application? I see I have done so.

    #71105
    Alan Montgomery
    Participant

    There is a TsAlphaHints on the application’s main form which is the one where I first noticed the problem.

    #71106
    Lasse
    Participant

    Have you debugged for example TsAlphaHints.OnCheckTimer procedure? I think there was an issue at some point. I have done 150 fixes for AlphaSkins but none of those affects that…

    #71107
    Alan Montgomery
    Participant

    I did – though I think OnCheckTimer is called only once after showing the hint and does the cleanup after showing the hint.
    I also looked at OnCtrlTimer. It gets called repeatedly but I think all it does is hide the hint if you go outside the window – which was working.
    IIRC it is the TApplication that hides the hint on timeout and it was failing because it had a hint control but that control didn’t have a handle.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.