OnAnnToolChecked example for C++ Builder
void __fastcall TForm1::LEADAnn1AnnToolChecked (int iTool)
{
AnsiString TestString;
switch (iTool)
{
case ANNTOOL_SELECT:
{
TestString= "Selection pointer tool";
}
break;
case ANNTOOL_LINE:
{
TestString= "Line tool";
}
break;
case ANNTOOL_RECT:
{
TestString= "Rectangle tool";
}
break;
case ANNTOOL_ELLIPSE:
{
TestString= "Ellipse tool";
}
break;
//.
//.
//.
default:
TestString= "User defined tool";
}
ShowMessage ( TestString );
}