Specializes TextBox to native key handling on the Max platform.
Application specific derivation of TextBox which should be used when designing managed UI for this application. Overrides certain behaviour that does not work well within the context of the application.
Public Member Functions |
|
void | RequestAcceptNative () |
Raises the AcceptedNative event. |
|
void | RequestCancelNative () |
Raises the CanceledNative event. |
|
Protected Member Functions |
|
virtual void | OnAcceptedNative (EventArgs e) |
Raises the AcceptedNative event. |
|
virtual void | OnCanceledNative (EventArgs e) |
Raises the CanceledNative event. |
|
override void | WndProc (ref Message m) |
Overrides the standard TextBox WndProc
method to intercept the Enter and Escape keys and generate the
corresponding "Native" events. |
|
Events |
|
EventHandler< EventArgs > | AcceptedNative |
Occurs as a result of an Enter key being
struck while this text box is in focus. |
|
EventHandler< EventArgs > | CanceledNative |
Occurs as a result of an Escape key being
struck while this text box is in focus. |
virtual void MaxCustomControls::MaxTextBox::OnAcceptedNative | ( | EventArgs | e | ) | [inline, protected, virtual] |
Raises the AcceptedNative event.
e | Usually EventArgs.Empty |
virtual void MaxCustomControls::MaxTextBox::OnCanceledNative | ( | EventArgs | e | ) | [inline, protected, virtual] |
Raises the CanceledNative event.
e | Usually EventArgs.Empty |
void MaxCustomControls::MaxTextBox::RequestAcceptNative | ( | ) | [inline] |
Raises the AcceptedNative event.
void MaxCustomControls::MaxTextBox::RequestCancelNative | ( | ) | [inline] |
Raises the CanceledNative event.
override void MaxCustomControls::MaxTextBox::WndProc | ( | ref Message | m | ) | [inline, protected] |
Overrides the standard TextBox WndProc method to intercept the Enter and Escape keys and generate the corresponding "Native" events.
m | The message being processed by the proc. |
EventHandler<EventArgs> MaxCustomControls::MaxTextBox::AcceptedNative |
Occurs as a result of an Enter key being struck while this text box is in focus.
This is required due to a bug in the .NET layer relating to hosting Managed controls in an unmanaged application.
EventHandler<EventArgs> MaxCustomControls::MaxTextBox::CanceledNative |
Occurs as a result of an Escape key being struck while this text box is in focus.
This is required due to a bug in the .NET layer relating to hosting Managed controls in an unmanaged application.