C# Class AnimatGuiCtrls.Controls.DropDownControlBase

Inheritance: System.Windows.Forms.Control
Afficher le fichier Open project: NeuroRoboticTech/AnimatLabPublicSource

Private Properties

Свойство Type Description
GetDropDownButtonState ComboBoxState
GetPlainButtonState ButtonState
GetTextBoxBounds System.Drawing.Rectangle
GetTextBoxState ComboBoxState
SetHeight void

Méthodes publiques

Méthode Description
DropDownControlBase ( ) : System

Creates a new instance of DropDownControlBase.

Méthodes protégées

Méthode Description
IsInputKey ( Keys keyData ) : bool

Registers the arrow keys as input keys.

OnDropDown ( EventArgs e ) : void

Raises the DropDown event.

OnDropDownButtonClick ( EventArgs e ) : void

Raised the DropDownButtonClick event.

OnDropDownClosed ( EventArgs e ) : void

Raises the DropDownClosed event.

OnFontChanged ( EventArgs e ) : void

Recalculates the fixed height of the control when the font changes.

OnGotFocus ( EventArgs e ) : void

Repaints the focus rectangle when focus changes.

OnLostFocus ( EventArgs e ) : void

Repaints the focus rectangle when focus changes.

OnMouseClick ( MouseEventArgs e ) : void

Determines when to raise the DropDownButtonClick event.

OnMouseDown ( MouseEventArgs e ) : void

Repaints the control when a mouse button is pressed.

OnMouseEnter ( EventArgs e ) : void

Repaints the control when the mouse enters its bounds.

OnMouseLeave ( EventArgs e ) : void

Repaints the control when the mouse leaves its bounds.

OnMouseMove ( MouseEventArgs e ) : void

Repaints the control when the mouse is moved over the control.

OnMouseUp ( MouseEventArgs e ) : void

Repaints the control when a mouse button is released.

OnPaint ( PaintEventArgs e ) : void

Paints the control.

OnPaintContent ( DropDownPaintEventArgs e ) : void

Paints the content in the editable portion of the control, providing additional measurements and operations.

OnSizeChanged ( EventArgs e ) : void

Recalculates the bounds for the dropdown button when the control's size changes.

Private Methods

Méthode Description
GetDropDownButtonState ( ) : ComboBoxState

Determines the state in which to render the dropdown button portion of the control (when using visual styles).

GetPlainButtonState ( ) : ButtonState

Determines the state in which to render the dropdown button portion of the control (when not using visual styles).

GetTextBoxBounds ( ) : Rectangle

Gets the bounds of the textbox portion of the control by subtracting the dropdown button bounds from the client rectangle.

GetTextBoxState ( ) : ComboBoxState

Determines the state in which to render the textbox portion of the control (when using visual styles).

SetHeight ( ) : void

Sets the fixed height of the control, based on the font size.

Method Details

DropDownControlBase() public méthode

Creates a new instance of DropDownControlBase.
public DropDownControlBase ( ) : System
Résultat System

IsInputKey() protected méthode

Registers the arrow keys as input keys.
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Résultat bool

OnDropDown() protected méthode

Raises the DropDown event.
protected OnDropDown ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnDropDownButtonClick() protected méthode

Raised the DropDownButtonClick event.
protected OnDropDownButtonClick ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnDropDownClosed() protected méthode

Raises the DropDownClosed event.
protected OnDropDownClosed ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnFontChanged() protected méthode

Recalculates the fixed height of the control when the font changes.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnGotFocus() protected méthode

Repaints the focus rectangle when focus changes.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLostFocus() protected méthode

Repaints the focus rectangle when focus changes.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseClick() protected méthode

Determines when to raise the DropDownButtonClick event.
protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseDown() protected méthode

Repaints the control when a mouse button is pressed.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseEnter() protected méthode

Repaints the control when the mouse enters its bounds.
protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseLeave() protected méthode

Repaints the control when the mouse leaves its bounds.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

Repaints the control when the mouse is moved over the control.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

Repaints the control when a mouse button is released.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

Paints the control.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnPaintContent() protected méthode

Paints the content in the editable portion of the control, providing additional measurements and operations.
protected OnPaintContent ( DropDownPaintEventArgs e ) : void
e DropDownPaintEventArgs
Résultat void

OnSizeChanged() protected méthode

Recalculates the bounds for the dropdown button when the control's size changes.
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void