LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tooltips and popup panel

Hello,
when I add tooltips on controls of a panel displayed with DisplayPanel function, it works, but when i displayed the same panel with InstallPopup function, the tooltips aren't displayed at all. Is this a normal behaviour?
Thanks.
0 Kudos
Message 1 of 10
(6,224 Views)
Hi,
I've notified our developers of this, and they're working on it. As soon as I get more information, I'll post back here.
In the meantime, can you use DisplayPanel, and then have a panel callback for the popped up panel where the event is lost focus, and then you can use the SetActivePanel
i.e.
int CVICALLBACK PopupPanelCB (int panel, int event, void *callbackData,
int eventData1, int eventData2)
{
switch (event)
{
case EVENT_LOST_FOCUS:
SetActivePanel (panel);
break;
}
return 0;
}

Thanks
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 10
(6,211 Views)
Hello yc,

Another workaround would be to assign tooltips to your controls after you call InstallPopup(). This also seems to correct the issue.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
Message 3 of 10
(6,205 Views)
It doesn't work when there is a child panel in the popup panel and unfortunately that's what I need.
Thanks.
0 Kudos
Message 4 of 10
(6,094 Views)
Hello,

I don't know if it helps and which version of Labwindows/CVI do you have, but before LW/CVI 7.0
I used the functions from the tooltip.fp to manage tooltips, but I also encountered some problems (I don't remember which kind of).

And since LW/CVI 7.0, the tooltips functionalities are simplified and are part of the toolbar.fp
(under User Interface Utilities, Set/GetCtrlToolTipAttribute) and since there I am happy with it.


So if you use the tooltip.fp functions I advise you to change for the toolbar.fp tooltip functions.
0 Kudos
Message 5 of 10
(6,071 Views)
Hello,
thanks for answering but i'm using Labwindows 7.1.1 and the right functions for managing Tooltips. Indeed, they always work, except in the particular case I've mentionned before (ie : in a popup panel with contains a child panel). Moreover, Tooltip's functions are in toolbox function panel and not in toolbar function panel.
Thanks.
0 Kudos
Message 6 of 10
(6,033 Views)
In case you're still struggling with this, I'm attaching a version of toolbox.c that should fix the tooltip-in-a-child-panel problem.

To begin using this, first back up the toolbox.c and toolbox.obj from your toolbox folder. Then replace toolbox.c with this one, and create a new .obj file by opening toolbox.c in a source window and selecting Options>>Create Object File. Then restart CVI.

Let me know if you still have problems.

Luis
NI
0 Kudos
Message 7 of 10
(6,016 Views)

Hello,

Thanks for helping me. Actually, with your source code it's worth because, tooltips don't appear and each time my mouse goes out of the popup panel the foolowing library error occurs :

Library function error (return value == -77 [0xffffffb3]). The attribute is valid for child panels only Some attributes of top level panels are determined by the host operating system.

 


0 Kudos
Message 8 of 10
(5,916 Views)
Hi,

sorry for posting in this old post, but I have the same problem as described here in CVI 8.5. I've solved the problem using the attached patch to toolbox.c. I hereby sign off all rights to this code, so you can include it in the next CVI if you want. I'll also be posting another patch for a problem I found any second.

Axel Gembe
SeCa GmbH

Message Edited by DerAgo on 03-17-2008 05:27 AM
0 Kudos
Message 9 of 10
(5,301 Views)
Thanks for the post, Axel!  I'll make sure someone from R&D takes a look.  We appreciate your help!
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 10 of 10
(5,266 Views)