AnnNameRectLeft example for C++ Builder
//This sample displays the defining rectangle of the annotation hObject
void TForm1::SampleAnnNameRect (L_HANDLE hObject )
{
AnsiString strMsg;
int nLeft, nTop, nWidth, nHeight;
nLeft = LEADAnn1->AnnNameRectLeft [hObject];
nTop = LEADAnn1->AnnNameRectTop [hObject];
nWidth = LEADAnn1->AnnNameRectWidth[hObject];
nHeight= LEADAnn1->AnnNameRectHeight [hObject];
ShowMessage ("Ann Name Rect: Left[" + IntToStr(nLeft) + "], Top[" + IntToStr(nTop) + "], Width[" + IntToStr(nWidth) + "], Height[" + IntToStr(nHeight) + "]");
}