AnnOptions example for C++ Builder

// This example demonstrates how to enable/disable the new
// 'side handle' annotation feature in version 14.5.  To see how this works,
// paste this example into the main annotation demo, draw a rectangle,
// and select it before calling this function.  The example toggles the feature.
void TForm1::ExampleAnnOptions()
{
  AnsiString strMsg;
  int uOptions;
  uOptions= LEADAnn1->AnnOptions;
  if(uOptions & OPTIONS_NEW_SIDE_HANDLES)
  {
     uOptions &= ~OPTIONS_NEW_SIDE_HANDLES;
     strMsg= "Draw a rectangular object and select it.  Note there are no side handles.  Run this example again to enable the side handles.";
  }
  else
  {
     uOptions |= OPTIONS_NEW_SIDE_HANDLES;
     strMsg= "Draw a rectangular object and select it.  Note the side handles.  Run this example again to disable the side handles.";
  }
  LEADAnn1->AnnOptions= uOptions;
  ShowMessage(strMsg);
}