MouseMoved

The MouseMoved event draws the selection feedback (through the inherited DrawFeedback function) or continues moving a graphic that had been clicked on.

      bool
      TCanvasSelectionInteractor::MouseMoved (TMouseMovedEvent& theEvent)
      {
          TGPoint p = theEvent.GetEventPosition ();
          
          if ( p != GetLastPoint() ) {
              RecordPoint (p);
              if ( fRectSelecting ) DrawFeedback ();
              else
                  ContinueInteraction ();
              }
              
          return true;
      }

[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