04-13-2016 02:21 AM
Hello NI,
I have found a little bug with the data tooltips (CVI2015), and I even can give a recipe to reproduce this behavior
If running a program in debug mode, with the environment setting 'Hide windows when application is running', a data tooltip may show up although no source code window is displayed (example shown below).
This happens if
(1) there is a breakpoint in the source code such that the programs stops,
(2) the cursor points to a line where it is able to display a tooltip (example shown below)
(3) BUT the program is continued before this tooltip is displayed
then this tooltip is displayed although the source code window already has disappeared and the program GUI is shown.
If one would wait long enough with the source code window open to have the data tool tip shown then the tooltip is cleared as expected if the source code window is hidden.
Not crucial but a bit irritating
above you can see the data tooltip (giving the full path of a file in the project browser) although the project browser is not visible...
this happens because the cursor is located in a place where it would show a tooltip if the source code window would be open...
04-22-2016 07:19 AM
Hi Wolfgang,
I tried to reproduce the issue, but I do not see it. So I got some questions:
Do you see this behavior on multiple machines?
Do you see the behavior with multiple projects? If so, do you have one exampel, where I can reproduce it, too?
Best,
Melanie
04-25-2016 01:05 AM
Hi Melanie,
Thanks for looking into it. I admit that reproducing this issue may be a little bit tricky because it depends on the location of your mouse cursor, one needs to have it located in a position where it will show a data tooltip if the source code window is open AND of course once the program is run the GUI of the software needs to cover this place too so that the cursor is above the GUI - so this effect depends both on the position of your source code window and the GUI...
Concerning your questions - I have seen this only on one computer, but I haven't looked at it at others. Also, I did not try to build another example, but if I find some time I can try
04-25-2016 02:12 AM
Hi Wolfgang,
thank you for your reply.
I tried to find the right position for the cursor several times before, this is why I asked you for the machine and project.
Please let me know, if you see the behavior in another project or on another machine.
I will try to find the correct position again meanwhile.
Best,
Melanie
04-26-2016 03:35 PM
Hi Melanie,
at least I can answer your first question now - I can see the effect on a different computer, too.
Maybe to clarify the mouse cursor position: I have the IDE open and start running the program by clicking on the green arrow; then I move the mouse cursor to the (soon to be hidden) project area where the file names are listed. The software then will stop at a breakpoint and if you would wait long enough (but otherwise do nothing) the data tooltip will pop up giving the full path name. However for reproducing the issue one will not wait so long but as soon as the program stops at the breakpoint hit F5 to continue. Then the GUI shows plus the skipped data tooltip...
04-27-2016 01:47 AM
Hi Wolfgang,
thank you for your reply.
I will try the way you discribe and see, if I can reproduce it then.
Best,
Melanie
04-27-2016 05:19 AM
Hi Melanie,
it also works for NI provided samples...
I have used samples/userint/callback.cws with the following modifications:
- add a breakpoint at the first line of code (int hpanel )
- increase GUI panel size to 1150 x 1450 so that the mouse pointing to the project files (see screenshot below) will be above the GUI when the program is run (this of course depends on your screen size)
That's it. Run the program but at the breakpoint immediately press F5, then you should obtain the result depicted below.
04-27-2016 07:40 AM
Hi Wolfgang,
thank you for the detailed reproduction steps. I could reproduce it now.
I will report the behavior and post the tracking number then.
Best,
Melanie
04-27-2016 07:51 AM
Hi Wolfgang,
the tracking number is 584797. The issue is reported with it internally.
Thank you for providing all the information.
Best,
Melanie
04-27-2016 07:53 AM
Thank you too