minority Posted February 17, 2008 Report Share Posted February 17, 2008 Apologies if this thread does not belong here. I'm very new to LabVIEW, and have tried searching the Help and this forum for this. I'm looking to create a list in which items can be added or removed during runtime. At the same time, I want to give the user the ability to get more information about the item by either hovering over the item or double-clicking it. My current solution is to use a listbox and a separate button to get info about this, but I would like to remove this one small bit of tedium. All replies would be very much appreciated. cheers Quote Link to comment
Yair Posted February 18, 2008 Report Share Posted February 18, 2008 You can use an event structure and capture both the value change and double click events for the listbox. This won't give you the hovering behavior you want, but you can do a combination of a mouse enter event followed by mouse move events to figure out which element you're over. I know that tables have a method for this, so it's possible that listboxes have one as well. You can find some tutorials here. Quote Link to comment
minority Posted February 19, 2008 Author Report Share Posted February 19, 2008 QUOTE(Yen @ Feb 17 2008, 06:04 PM) You can use an event structure and capture both the value change and double click events for the listbox. This won't give you the hovering behavior you want, but you can do a combination of a mouse enter event followed by mouse move events to figure out which element you're over. I know that tables have a method for this, so it's possible that listboxes have one as well.You can find some tutorials http://wiki.lavag.org/LabVIEW_tutorial#External_Links' target="_blank">here. Thank you very much! I'll look through the tutorials. cheers Quote Link to comment
Norm Kirchner Posted February 20, 2008 Report Share Posted February 20, 2008 I would also suggest looking into the Context Menus (right click menu) Although it doesn't show the information as easily as a magic floating text-box when you hover over a value, it does provide for a cleaner interface and also more intuitive. Most people expect to find more options/info when they right click on an item on the screen Quote Link to comment
minority Posted February 23, 2008 Author Report Share Posted February 23, 2008 QUOTE(Norm Kirchner @ Feb 19 2008, 03:12 PM) I would also suggest looking into the Context Menus (right click menu) Although it doesn't show the information as easily as a magic floating text-box when you hover over a value, it does provide for a cleaner interface and also more intuitive. Most people expect to find more options/info when they right click on an item on the screen Thanks for the suggestion. I'm developing for both the Mac and Windows though, so I'm guessing that setting what appears in the context menu would work for both OSes? cheers Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.