AnnGetNameOffsetX example for C++ Builder
/*This sample shifts the NameOffset of the annotation object hObject
two pixels in the X direction and one pixel in the Y direction*/
void TForm1::SampleNameOffset (L_HANDLE hObject )
{
int OffsetX;
int OffsetY;
OffsetX= LEADAnn1->AnnGetNameOffsetX (hObject);
OffsetY= LEADAnn1->AnnGetNameOffsetY (hObject);
OffsetX= OffsetX + 2;
OffsetY= OffsetY + 1;
ShowMessage ("Shifting Name Offset to " + IntToStr(OffsetX) + "," + IntToStr(OffsetY));
LEADAnn1->AnnSetNameOffsetX (hObject, OffsetX, False);
LEADAnn1->AnnSetNameOffsetY (hObject, OffsetY, False);
}