09-22-2006 02:23 AM
09-22-2006 04:59 AM
09-22-2006 05:22 AM
hi roberto
it doesnt work..iam working on LabWindows/CVI 7.0
when i search the command SetCtrlToolTipAttribute it was not there
and also when i try to find EnableExtendedMouseEvents it was also not found..
so guide me how to use it in CVI 7.0 and iam using the userinterface in VC++ 6.0 ..
tell me how to set tooltip from VC++ for userinterface which i suppose to develop
in LabWindows/CVI 7.0
waiting for ur reply
regds
SKS
09-22-2006 05:43 AM
09-22-2006 08:24 AM
09-22-2006 10:31 AM
If you want to display the same text every time the mouse is over any part of the listbox (for example, some help text that explains generally what the list as a whole is comprised of), then you'll want to use SetCtrlToolTipAttribute.
However, if you want to display the text of an individual listbox item (for example, if the text is too long and is cut off by the boundaries of the listbox control) when the mouse is over a particular listbox item, then you should use a tree instead of a listbox. You can configure the tree to look just like a listbox, and one of the extra features in the tree that you don't get with the listbox is this kind of tooltip. Check out this post to see an example of how to configure the tree to look like a listbox. You can use the same API with the tree as you do with the listbox, so you wouldn't have to change much of your code.
http://forums.ni.com/ni/board/message?board.id=180&message.id=13541#M13541
Hope this helps,
- jared