/*! * Dispatches the OnMidButtonDoubleClick event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object * The state flags are mapped to HOOPS/MVO abstracted flags * * \param e Provides data for the System.Windows.Forms.UserControl.MouseDoubleClick event */ protected void OnMidButtonDoubleClick(System.Windows.Forms.MouseEventArgs e) { HEventInfo hevent = new HEventInfo(m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_MButtonDblClk, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * Dispatches the OnRightButtonUp event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object * The state flags are mapped to HOOPS/MVO abstracted flags * * \param e Provides data for the System.Windows.Forms.UserControl.MouseUp event */ protected void OnRightButtonUp(System.Windows.Forms.MouseEventArgs e) { HEventInfo hevent = new HEventInfo(m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_RButtonUp, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * Dispatches the OnMidButtonUp event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object * The state flags are mapped to HOOPS/MVO abstracted flags * * \param e Provides data for the System.Windows.Forms.Control.MouseUp event */ protected virtual void OnMidButtonUp(MouseEventArgs e) { HEventInfo hevent = new HEventInfo(m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_MButtonUp, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * Dispatches the OnRightButtonDoubleClick event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object * The state flags are mapped to HOOPS/MVO abstracted flags * * \param e Provides data for the System.Windows.Forms.Control.MouseDoubleClick event */ protected virtual void OnRightButtonDoubleClick(MouseEventArgs e) { HEventInfo hevent = new HEventInfo(m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_RButtonDblClk, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * Responds to MouseMove events and passes particular co-ordinates to hoops * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the System.Windows.Forms.UserControl.MouseMove event */ protected void PanelMouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { HEventInfo hevent = new HEventInfo(m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_MouseMove, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * This method is called from HNForm OnMouseWheel method * * It dispatches the OnMouseWheel event to HOOPS/MVO, which will in turn dispatch it to the current HBaseOperator object * The state flags are mapped to HOOPS/MVO abstracted flags * * \param e Provides data for System.Windows.Forms.Control.MouseWheel */ public new void OnMouseWheel(MouseEventArgs e) { HEventInfo hevent = new HEventInfo(m_pHView); hevent.SetMouseWheelDelta(e.Delta); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_MouseWheel, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * Responds to MouseMove events and passes particular co-ordinates to hoops * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the System.Windows.Forms.Control.MouseMove event */ protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); HEventInfo hevent = new HEventInfo(m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_MouseMove, e.X, e.Y, flags); m_pHView.InjectEvent(hevent); }
/*! * Maps the MouseLeftButtonUp event to HPanel::MouseLeftButtonUp * * \param e Provides data for System.Windows.Forms.Control.MouseLeftButtonUp event */ protected void Window_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (m_pHPanel != null && m_pHPanel.m_pHView != null) { Point position = e.GetPosition(this); int pX = (int)position.X; int pY = (int)position.Y; HEventInfo hevent = new HEventInfo(m_pHPanel.m_pHView); uint flags = MapFlags_Mouse(e); hevent.SetPoint(HEventType.HE_LButtonUp, pX, pY, flags); m_pHPanel.m_pHView.InjectEvent(hevent); } }