LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
3,885 次查看
> 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 项奖励
2 条消息(共 5 条)
3,877 次查看

Thank you

 

Andreas

0 项奖励
3 条消息(共 5 条)
3,860 次查看
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 项奖励
4 条消息(共 5 条)
3,849 次查看

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 项奖励
5 条消息(共 5 条)
3,847 次查看