ContinueInteration

The MouseMoved event calls ContinueInteraction only when you are not in the process of drawing a selection rectangle. This happens when you click and drag a graphic in one operation. Again, this is similar to the TCanvasGraphicTranslatingInteractor.

      void        
      TCanvasSelectionInteractor::ContinueInteraction ()
      {
          unsigned long n = GetNumberOfPoints ();
          if ( n >= 2 ) {
              fCommand->SetOffset (GetPoint(n-1)-GetPoint(n-2));
              DoIncrement (*(fBinding.GetObject()));
              }
      }

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker