02-17-2005 10:55 AM
_annotation.AfterDraw += new NationalInstruments.UI.AfterDrawXYPointAnnotationEventHandler( AnnotationIconDrawnEventHandler );
and
private void AnnotationIconDrawnEventHandler( object sender, NationalInstruments.UI.AfterDrawXYPointAnnotationEventArgs e )
{
int positionX = (int) e.ShapePoint.X;
int positionY = (int) e.ShapePoint.Y;
e.Graphics.DrawIcon( _icon, positionX, positionY );
}
02-17-2005 11:28 AM
06-15-2009 03:25 PM
To all,
My goal is to be able to add custom annotations (jpegs) to a waveform graph as it is acquiring data. I was thinking of setting up the VI so that one could simply click an "add annotations" button that would switch when pressed, then click any number of locations on the waveform graph with the mouse and have the custom annotations appear at these points. When the user is finished adding annotations, they could simply click the "add annotations" button again to return it to a false value. Any suggestions on how to do this?
Thus far, I have been able to get a single jpeg annotation to appear at any desired location, but I would like to do more, maybe five or so. But, an unlimited number would be nice.
Thanks,
Owen