AnnSetText example for C++ Builder
void TForm1::TestAnnSetText ( HANNOBJECT hAnnObject )
{
AnsiString strText; /* The object’s text */
/* Get the current text */
LEADAnn1->AnnGetText ( hAnnObject, strText );
/* Add " - New" to the end of the current text */
strText= strText + " - New";
LEADAnn1->AnnSetText ( hAnnObject, strText, false );
}