LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tooltips are not updated immediately (although they should)

Hello,

 

I am programmatically setting the tooltip text using ATTR_TOOLTIP_TEXT. Unfortunately, the new text is displayed only after the mouse has been moved away from the control and back to the control, i.e. after a new tooltip has been generated.

 

I understand that this is due to the current implementation but

  • I consider it an inconsistent attribute behavior (e.g., dimming a control happens "immediately")
  • I would like it much better if the tooltip text would be updated "immediately" after setting the attribute Smiley Very Happy

 

The reason for my "complaint" is the following: I have a string control that displays a path name. Usually the path name is longer than the string control so the control displays an abbreviated name while the tooltip shows the full name. If the mouse is over this string control while the text of the string control is updated, the tooltip is outdated, i.e., wrong: The control shows the new file name while the tooltip displays the old one, simply because it cannot be updated "simultaneously". Smiley Frustrated

 

Thanks for feedback Smiley Wink

0 Kudos
Message 1 of 2
(3,383 Views)

Hi Wolfgang,

 

I've created a bug report to examine this (#421591). I'm not saying yet that this is definitely a bug -- one can make a case for either, although I'm inclined to agree with you that it is -- but that will be determined when processing the bug report.

 

Unfortunately, I can't think of a reasonable workaround for you. I think it would be pretty hard to forcibly dismiss and re-display the tooltip programmatically.

 

Luis

0 Kudos
Message 2 of 2
(3,345 Views)