AnnNameBoundingRectLeft example for C++ Builder
//This sample displays the bounding rectangle of the annotation hObject
void TForm1::SampleAnnNameBoundingRect (L_HANDLE hObject )
{
AnsiString strMsg;
int nLeft, nTop, nWidth, nHeight;
nLeft = LEADAnn1->AnnNameBoundingRectLeft [hObject];
nTop = LEADAnn1->AnnNameBoundingRectTop [hObject];
nWidth = LEADAnn1->AnnNameBoundingRectWidth [hObject];
nHeight= LEADAnn1->AnnNameBoundingRectHeight [hObject];
ShowMessage ("Ann Name Bounding Rect: Left[" + IntToStr(nLeft) + "], Top[" + IntToStr(nTop) + "], Width[" + IntToStr(nWidth) + "], Height[" + IntToStr(nHeight) + "]");
}