09-24-2020 04:32 AM
Hi,
I want to determine (using script) if a curve in VIEW has been selected. I use this:-
msgbox View.ActiveSheet.ActiveArea.DisplayObj.Curves2D(1).Selected
but the result is FALSE. I understand 'selected' to mean the curve has been selected by placing a dot as shown here:-
but obviously I am missing something...could someone explain why my line of script does not work as I expected?
Thank you!
Solved! Go to Solution.
09-24-2020 07:16 AM
Hello mrme,
The curve with the blck dot is the so called Leading Curve.
msgbox View.ActiveSheet.ActiveArea.DisplayObj.Curves2D.LeadingCurve.YChannelName
Greetings
Walter
09-24-2020 08:46 AM
Hi Walter,
Thanks for the fast response....but I am confused as to what '.Selected' does.
What does Selected' mean ?
What would one use it for?
How do I select a curve in a plot?
kind regards,
Thomas
09-24-2020 09:06 AM - edited 09-24-2020 09:08 AM
Hi Thomas,
If you click on left or right grey area in the legend you can select (mark) one or more curves and delete or drag & drop them.
The leading curve marks the curve for the focus of the cursor.
Greetings
Walter
09-24-2020 09:46 AM
Hi Walter,
Thanks! It is clear now.
Thomas