LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive legend event ?

Hello all,
is there a specific event fired when the user changes a plot property in the
legend box (when allowing interactive legends) ?
This way I could read the properties of all the plot and apply it when I
renew the plot.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 1 of 4
(3,129 Views)

Hi,

 

yes there is the EVENT_INTERACTIVE_LEGEND, which is generated when a user right-clicks the graph or strip chart legend and selects an item from the interactive legend menu.

 

eventData1 tells you the plot ID for graphs or the trace index for strip charts

eventData2 yields the menu item that the user selects

 

Wolfgang

0 Kudos
Message 2 of 4
(3,127 Views)
> eventData1 tells you the plot ID for graphs or the trace index for
> strip charts
>
> eventData2 yields the menu item that the user selects

Thanks.
Getting most of the properties has a slight 'off by one' bug:
if I click on the top plot in the legend, eventData1 returns 0, but
SetTraceAttribute is 1-based.
Simply adding one to refer to the proper trace seems to work though.
--
Guillaume Dargaud
http://www.gdargaud.net/
Message 3 of 4
(3,123 Views)

Thanks for reporting the off by one bug. A bug report (#304345) has been created to fix it.

0 Kudos
Message 4 of 4
(3,108 Views)