ShowMotionBlurDlg example for C++ Builder

void __fastcall TForm1::ShowMotionBlurDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   LEADDlgImgEffect1->DlgFlags = DLG_MOTIONBLUR_SHOW_PREVIEW |
                                 DLG_MOTIONBLUR_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgEffect1->LEADImage = LEADImage1; 
   LEADDlgImgEffect1->LEADDlgService = LEADDlgService1; 
   LEADDlgImgEffect1->ZoomToFit = false; 
   LEADDlgImgEffect1->EnableMethodErrors = False; 
   LEADDlgImgEffect1->ShowHelpButton = True; 

   nRet= LEADDlgImgEffect1->ShowMotionBlurDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->MotionBlur ( LEADDlgImgEffect1->Dimension, LEADDlgImgEffect1->Angle, LEADDlgImgEffect1->Unidirectional ); 
   }
}

void __fastcall TForm1::LEADDlgImgEffect1DlgHelp (DWORD uDialogID) 
{
   switch ( uDialogID ) 
   {
      case DLG_HELP_MOTIONBLUR: 
         ShowMessage( "Help from MotionBlur dialog" ); 
         break; 

      case DLG_HELP_RADIALBLUR: 
         ShowMessage( "Help from RadialBlur dialog" ); 
         break; 

      case DLG_HELP_ZOOMBLUR: 
         ShowMessage( "Help from ZoomBlur dialog" ); 
         break; 

      case DLG_HELP_GAUSSIANBLUR: 
         ShowMessage( "Help from GaussianBlur dialog" ); 
         break; 

      case DLG_HELP_ANTIALIAS: 
         ShowMessage( "Help from AntiAlias dialog" ); 
         break; 

      case DLG_HELP_AVERAGE: 
         ShowMessage( "Help from Average dialog" ); 
         break; 

      case DLG_HELP_MEDIAN: 
         ShowMessage( "Help from Median dialog" ); 
         break; 

      case DLG_HELP_ADDNOISE: 
         ShowMessage( "Help from AddNoise dialog" ); 
         break; 

      case DLG_HELP_MAXFILTER: 
         ShowMessage( "Help from MaxFilter dialog" ); 
         break; 

      case DLG_HELP_MINFILTER: 
         ShowMessage( "Help from MinFilter dialog" ); 
         break; 

      case DLG_HELP_SHARPEN: 
         ShowMessage( "Help from Sharpen dialog" ); 
         break; 

      case DLG_HELP_SHIFTDIFFERENCEFILTER: 
         ShowMessage( "Help from ShiftDifferenceFilter dialog" ); 
         break; 

      case DLG_HELP_EMBOSS: 
         ShowMessage( "Help from Emboss dialog" ); 
         break; 

      case DLG_HELP_OILIFY: 
         ShowMessage( "Help from Oilify dialog" ); 
         break; 

      case DLG_HELP_MOSAIC: 
         ShowMessage( "Help from Mosaic dialog" ); 
         break; 

      case DLG_HELP_EROSIONFILTER: 
         ShowMessage( "Help from ErosionFilter dialog" ); 
         break; 

      case DLG_HELP_DILATIONFILTER:
         ShowMessage( "Help from DilationFilter dialog" ); 
         break; 

        case DLG_HELP_CONTOURFILTER: 
         ShowMessage( "Help from ContourFilter dialog" ); 
         break; 

      case DLG_HELP_GRADIENTFILTER: 
         ShowMessage( "Help from GradientFilter dialog" ); 
         break; 

      case DLG_HELP_LAPLACIANFILTER: 
         ShowMessage( "Help from LaplacianFilter dialog" ); 
         break; 

      case DLG_HELP_SOBELFILTER: 
         ShowMessage( "Help from SobelFilter dialog" ); 
         break; 

      case DLG_HELP_PREWITTFILTER: 
         ShowMessage( "Help from PrewittFilter dialog" ); 
         break; 

        case DLG_HELP_LINESEGMENTFILTER: 
         ShowMessage( "Help from LineSegmentFilter dialog" ); 
         break; 

      case DLG_HELP_UNSHARPMASK: 
         ShowMessage( "Help from UnsharpMask dialog" ); 
         break; 

      case DLG_HELP_MULTIPLY: 
         ShowMessage( "Help from Multiply dialog" ); 
         break; 

      case DLG_HELP_ADDBITMAPS: 
         ShowMessage( "Help from AddBitmaps dialog" ); 
         break; 

      case DLG_HELP_STITCH: 
         ShowMessage( "Help from Stitch dialog" ); 
         break; 

      case DLG_HELP_FREEHANDWAVE: 
         ShowMessage( "Help from FreeHandWave dialog" ); 
         break; 

      case DLG_HELP_WIND: 
         ShowMessage( "Help from Wind dialog" ); 
         break; 

      case DLG_HELP_POLAR: 
         ShowMessage( "Help from Polar dialog" ); 
         break; 

      case DLG_HELP_ZOOMWAVE: 
         ShowMessage( "Help from ZoomWave dialog" ); 
         break; 

      case DLG_HELP_RADIALWAVE: 
         ShowMessage( "Help from RadialWave dialog" ); 
         break; 

      case DLG_HELP_SWIRL: 
         ShowMessage( "Help from Swirl dialog" ); 
         break; 

      case DLG_HELP_WAVE: 
         ShowMessage( "Help from Wave dialog" ); 
         break; 

      case DLG_HELP_FREEHANDSHEAR: 
         ShowMessage( "Help from FreeHandShear dialog" ); 
         break; 

      case DLG_HELP_PUNCH: 
         ShowMessage( "Help from Punch dialog" ); 
         break; 

      case DLG_HELP_RIPPLE: 
         ShowMessage( "Help from Ripple dialog" ); 
         break; 

      case DLG_HELP_BENDING: 
         ShowMessage( "Help from Bending dialog" ); 
         break; 

      case DLG_HELP_CYLINDRICAL: 
         ShowMessage( "Help from Cylindrical dialog" ); 
         break; 

      case DLG_HELP_SPHERIZE: 
         ShowMessage( "Help from Spherize dialog" ); 
         break; 

      case DLG_HELP_IMPRESSIONIST: 
         ShowMessage( "Help from Impressionist dialog" ); 
         break; 

      case DLG_HELP_PIXELATE: 
         ShowMessage( "Help from Pixelate dialog" ); 
         break; 

      case DLG_HELP_EDGEDETECTOR: 
         ShowMessage( "Help from EdgeDetector dialog" ); 
         break; 

      case DLG_HELP_UNDERLAY: 
         ShowMessage( "Help from Underlay dialog" ); 
         break; 

      case DLG_HELP_PICTURIZE: 
         ShowMessage( "Help from Picturize dialog" ); 
         break; 
   }
}