HNForm hooks up KeyBoard and Mousewheel events of the Form and passes them to the HNPanel class. More...
Public Member Functions | |
HNForm () | |
Public Attributes | |
HNPanel | m_pHNPanel |
Protected Member Functions | |
override void | OnKeyDown (KeyEventArgs e) |
override void | OnKeyUp (KeyEventArgs e) |
override void | OnKeyPress (KeyPressEventArgs e) |
override void | OnMouseWheel (MouseEventArgs e) |
HNForm hooks up KeyBoard and Mousewheel events of the Form and passes them to the HNPanel class.
The HNForm member functions overload the Form OnKeyPress, OnKeyUp and MouseWheel methods and then passes control to the HNPanel OnKeyPress, OnKeyUp and OnMouseWheel methods for custom handling.
This is the base class from which a custom HNForm class should be derived
|
inline |
Default Constructor
|
inlineprotected |
Maps the OnKeyDown event to HNPanel::OnKeyDown
e | Provides data for System.Windows.Forms.Control.KeyDown event |
References hoops_panel.HNForm.m_pHNPanel.
|
inlineprotected |
Maps the OnKeyPress event to HNPanel::OnKeyPress
e | Provides data for System.Windows.Forms.Control.KeyPress event |
References hoops_panel.HNForm.m_pHNPanel.
|
inlineprotected |
Maps the OnKeyUp event to HNPanel::OnKeyUp
e | Provides data for System.Windows.Forms.Control.KeyUp event |
References hoops_panel.HNForm.m_pHNPanel.
|
inlineprotected |
Maps the OnMouseWheel event to HNPanel::OnMouseWheel
e | Provides data for System.Windows.Forms.Control.MouseWheel event |
References hoops_panel.HNForm.m_pHNPanel.
HNPanel hoops_panel.HNForm.m_pHNPanel |
A reference to the HNPanel object. A custom HNPanel should be created in an overloaded HNPanel::Init method (i.e. MyCustomForm::Init)
Referenced by hoops_panel.HNForm.OnKeyDown(), hoops_panel.HNForm.OnKeyPress(), hoops_panel.HNForm.OnKeyUp(), and hoops_panel.HNForm.OnMouseWheel().