int AddGraphAnnotation (int panelHandle, int controlID, double x, double y, char *captionText, int xOffset, int yOffset);
Input |
Name |
Type |
Description |
panelHandle |
integer |
Specifier for a particular panel that is currently in memory. You obtain this
handle from LoadPanel, NewPanel, or DuplicatePanel. |
controlID |
integer |
The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl. |
x |
double-precision |
The x-coordinate of the annotated point. The annotation glyph will be displayed at this point. |
y |
double-precision |
The y-coordinate of the annotated point. The annotation glyph will be displayed at this point. |
captionText |
char * |
The string displayed in the annotation caption.
Pass NULL for the captionText to create an empty caption that is initially hidden. |
xOffset |
integer |
The x-offset, in pixels, from the top-left corner of the caption to the annotated point. |
yOffset |
integer |
The y-offset, in pixels, from the top-left corner of the caption to the annotated point. |