LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tool tip bug?

Hi,

I have a 2 monitor set-up on my development PC.

Win XP Home SP2.
CVI 8.1.0 build 271.

If I drag my application (debug or release mode)  to the second monitor, then hover over a control, the tool tip apears on the wrong monitor.

This isn't a problem in this case as the target PC is a single monitor system.

But, does anyone have a fix for this?

Cheers,

John C
0 Kudos
Message 1 of 7
(4,568 Views)
Hi John,

Well it appears you did find an unknown bug with our control tool tips when using a CVI application on a second monitor. I created a bug ID (# 4A58170F) for this issue so you can always look in the Readme notes associated with a CVI release to see if that bug was fixed.  I tried forcing the Active monitor to be the second monitor in hopes of getting those tool tips onto the appropriate monitor but that didn't work.

Thanks for reporting this!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 7
(4,540 Views)
I have just received my 8.1.1 upgrade. Thought you might like to know that the bug is also present with that.

Cheers,

John
0 Kudos
Message 3 of 7
(4,512 Views)
Hi John,

Yeah, I initially tested the behavior out in 8.1.1 but forgot to mention that on the forums. Thanks for the info.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 7
(4,502 Views)
Hello John,

This bug will be fixed in the next version of CVI. However, if this is giving you trouble now, you can fix it in your own version, by taking these steps:

1. Edit the following file: C:\Program Files\National Instruments\CVI81\toolslib\toolbox\toolbox.c

2. Look for a function named SharedTipPanel_ShowTip.

3. Inside SharedTipPanel_ShowTip, replace this code:

    GetScreenSize (&screenRect.height, &screenRect.width);
    screenRect.top = 0;
    screenRect.left = 0;

with this:

    errChk( GetMonitorFromPoint(mousePoint, &monitorID));
    errChk( GetMonitorAttribute(monitorID, ATTR_TOP, &screenRect.top));
    errChk( GetMonitorAttribute(monitorID, ATTR_HEIGHT, &screenRect.height));
    errChk( GetMonitorAttribute(monitorID, ATTR_WIDTH, &screenRect.width));

4. Add this declaration to the top of SharedTipPanel_ShowTip:

    int  monitorID;

5. Compile the file to disk by selecting Options>>Create Object File.

6. Restart CVI.


Luis




0 Kudos
Message 5 of 7
(4,361 Views)
Hi Luis,

Sorry to be so slow in replying to this. Thanks for the update, I'll try it out.

Cheers,

John.
0 Kudos
Message 6 of 7
(4,226 Views)
I've just recieved and installed my 8.5.0 update. This bug seems to be fixed.
0 Kudos
Message 7 of 7
(4,082 Views)