LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Picture button with help text

Hi,

 

I created several picture buttons. Now I'm searching for a solution to display a short explanation text, when the mouse cursor stays over the button.

 

Br

 

Andreas

0 Kudos
Message 1 of 5
(3,133 Views)
> Hi, I created several picture buttons. Now I'm searching for a
> solution to
> display a short explanation text, when the mouse cursor stays over the
> button.

SetCtrlToolTipAttribute() in the programmer's toolbox.
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 2 of 5
(3,125 Views)

Thank you

 

Andreas

0 Kudos
Message 3 of 5
(3,108 Views)
Hmmm, I just tried to use that function on one of my projects... and it does
nothing !
Does it need special setup ? Extra events ?
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 4 of 5
(3,097 Views)

Hi,

 

I'm using Labwindows/CVI 9.0.

 

You also have to enable the tooltip for each control.

 

e.g.

SetCtrlToolTipAttribute (pnlHndle_main, PANEL_PAUSEPLAY_SYMBOL, CTRL_TOOLTIP_ATTR_TEXT, "Pause");

SetCtrlToolTipAttribute (pnlHndle_main, PANEL_PAUSEPLAY_SYMBOL, CTRL_TOOLTIP_ATTR_ENABLE, 1);

 

and it seems, that it doesn't work, if the control is dimmed, but that's OK.

 

You also have to stay a little bit on the control and do nothing, than it will be displayed. Afterwards you have to move the cursor far away, that it will be displayed again.

 

But it works.

 

Br

 

Andreas
   

0 Kudos
Message 5 of 5
(3,095 Views)