Skip to content

Arguments tooltip is lost when certain topmost window steals focus #124

@sshukurov

Description

@sshukurov

Hi @govert,

Our team has been struggling with an unpleasant issue when at times the arguments tooltip doesn't pop up when needed. We tracked it down and created a minimal repro:

EXCEL_7gK5ojzvFk

Steps to reproduce:

  1. Follow the "Getting started" guide in https://excel-dna.net/
  2. Add an ExcelArgument attribute to name parameter of SayHello method, e.g.: [ExcelArgument(Name = "Name", Description = "Enter your name")]
  3. Build and run the addin
  4. Load ExcelDna.IntelliSense[64].xll
  5. Focus on a cell and press Windows key and plus sign - Magnifier appears
  6. Close Magnifier (optional)
  7. Type =SayHello(

Expected: Arguments tooltip must show up.
Actual: It does not show up, closing the Magnifier doesn't help.

More investigation by our team:
We turned on diagnostic logging and saw that the problem roots in FormulaEditWatcher.cs. It appears that it normally expects events in the following order: Focus > Show > Unfocus > Hide. In our case however, we saw events in the produced log in Focus > Unfocus > Hide order.

We attempted to add some compensating code to IntelliSense and it helped:
image

If that works, I could submit a pull request. Otherwise, we would love to hear your advice on this matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions