Page 1 of 1
ViewXY - how to hide the annotationxy anchor?
Posted: Wed Aug 24, 2016 12:56 pm
by greggorob64
Hi. I'm using an annotationXY, and i want the user to be able to move and resize the item, but not rotate. I want to completely hide the anchor icon, but can't figure out how. Any ideas? (anchor is on the left side of the annotation)
Re: ViewXY - how to hide the annotationxy anchor?
Posted: Wed Aug 24, 2016 1:55 pm
by jorge
Try this:
Code: Select all
annotation.RotateByMouse = false;
annotation.ResizeByMouse = false;
Re: ViewXY - how to hide the annotationxy anchor?
Posted: Wed Aug 24, 2016 2:48 pm
by greggorob64
I can't set the resize by mouse to false because I need to resize the annotation by mouse.
The rotate by mouse is already set to false, the anchor still shows up sometimes.
But then I checked and I had this to true: annotation.AnchorAdjustByMouse = false;
Thanks for the help
Re: ViewXY - how to hide the annotationxy anchor?
Posted: Wed Aug 24, 2016 5:34 pm
by ArctionPasi
Nicely spotted, Greg. Do you think we have too many properties? Maybe. We just want to provide "tweak everything" kind of API
Re: ViewXY - how to hide the annotationxy anchor?
Posted: Fri Aug 26, 2016 2:25 pm
by greggorob64
I had actually set it to false first and then true again later.
Something kind of funny is that i'm developing a graphing package for the engineers at my company, and I keep giving the users so many of the options that lightning chart has (its a giant wrapper around lightning charts basically).
It ends with me having to write so many of these damn options in as well, and its all multilingual so i have to add tons of crap in resource files.
Your features cost me time!