C# 클래스 ZForge.Controls.TreeViewAdv.NumericTextBox

Restricts the entry of characters to digits, the negative sign, the decimal point, and editing keystrokes (backspace). It does not handle the AltGr key so any keys that can be created in any combination with AltGr these are not filtered
상속: System.Windows.Forms.TextBox
파일 보기 프로젝트 열기: zhuangyy/Motion

Private Properties

프로퍼티 타입 설명
invalidNumeric bool

보호된 메소드들

메소드 설명
OnKeyPress ( KeyPressEventArgs e ) : void

Restricts the entry of characters to digits, the negative sign, the decimal point, and editing keystrokes (backspace). It does not handle the AltGr key

WndProc ( Message &m ) : void

Method invoked when Windows sends a message.

This is over-ridden so that the user can not use cut or paste operations to bypass the TextChanging event. This catches ContextMenu Paste, Shift+Insert, Ctrl+V, While it is generally frowned upon to override WndProc, no other simple mechanism was apparent to simultaneously and transparently intercept so many different operations.

비공개 메소드들

메소드 설명
invalidNumeric ( char key ) : bool

Main method for verifying allowed keypresses. This does not catch cut paste copy ... operations.

메소드 상세

OnKeyPress() 보호된 메소드

Restricts the entry of characters to digits, the negative sign, the decimal point, and editing keystrokes (backspace). It does not handle the AltGr key
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
리턴 void

WndProc() 보호된 메소드

Method invoked when Windows sends a message.
This is over-ridden so that the user can not use cut or paste operations to bypass the TextChanging event. This catches ContextMenu Paste, Shift+Insert, Ctrl+V, While it is generally frowned upon to override WndProc, no other simple mechanism was apparent to simultaneously and transparently intercept so many different operations.
protected WndProc ( Message &m ) : void
m Message Message from Windows.
리턴 void