AnnSetGaugeLength example for C++ Builder
void TForm1::TestAnnGauge ( HANNOBJECT hAnnObject, HANNOBJECT hContainer )
{
L_DOUBLE dLength;
/* if gauge length setting
is longer than 5 pixels, then make it 5 pixels. */
LEADAnn1->AnnGetGaugeLength ( hAnnObject, dLength );
if ( dLength > 5.0 )
{
LEADAnn1->AnnSetGaugeLength ( hAnnObject, 5.0, false );
}
}