07-03-2008 09:56 AM
07-07-2008 04:10 PM
07-08-2008 12:27 PM
07-09-2008 06:33 AM
07-17-2008 08:01 PM
Greg,
There will be a way to get the trace number (for strip charts) and the plot handle (for graphs) from a legend coordinate point in the next version of CVI (which should be in beta soon, check out ni.com/beta to sign up for the beta program). This will make it easy to set trace attributes from a mouse click.
In the mean time, there currently isn't a perfect solution for you. I do have a couple of suggustions.
- You could guestimate the height of each item in the legend and calculate which legend item a point is over based on which legend items are visible and your estimate of each items' height. This solution could work pretty well if you have a good idea of what kinds of things you'll be plotting.
- I know you didn't want to have to navigate the full interactive menu, so you could hide all the other interactive menu entries except for visible using HideBuiltInCtrlMenuItem.
Hope this helps,
- jared
07-18-2008 06:47 AM
Thanks Jared.
I'm glad to hear that the legend item will be available on events in the next CVI. I will leave my plot controls the way they are until then. Guestimating the height of each item is "iffy" at best and really messes up our customs who have high-res screens with "large fonts" set in windows (which messes up a lot of things). Even with regular font I build too much error over my 48+ traces... Which brings up another issue... will there also be scroll bars on the next version of the legend?
I plan to run the Beta for 9 through a bunch of our apps since we were heavily affected by several bugs in 8.5.
Greg