C# Class AnimatGuiCtrls.Controls.DropDownControlBase

Inheritance: System.Windows.Forms.Control
Mostra file Open project: NeuroRoboticTech/AnimatLabPublicSource

Private Properties

Property Type Description
GetDropDownButtonState ComboBoxState
GetPlainButtonState ButtonState
GetTextBoxBounds System.Drawing.Rectangle
GetTextBoxState ComboBoxState
SetHeight void

Public Methods

Method Description
DropDownControlBase ( ) : System

Creates a new instance of DropDownControlBase.

Protected Methods

Method 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

Method 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 method

Creates a new instance of DropDownControlBase.
public DropDownControlBase ( ) : System
return System

IsInputKey() protected method

Registers the arrow keys as input keys.
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
return bool

OnDropDown() protected method

Raises the DropDown event.
protected OnDropDown ( EventArgs e ) : void
e System.EventArgs
return void

OnDropDownButtonClick() protected method

Raised the DropDownButtonClick event.
protected OnDropDownButtonClick ( EventArgs e ) : void
e System.EventArgs
return void

OnDropDownClosed() protected method

Raises the DropDownClosed event.
protected OnDropDownClosed ( EventArgs e ) : void
e System.EventArgs
return void

OnFontChanged() protected method

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

OnGotFocus() protected method

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

OnLostFocus() protected method

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

OnMouseClick() protected method

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

OnMouseDown() protected method

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

OnMouseEnter() protected method

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

OnMouseLeave() protected method

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

OnMouseMove() protected method

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

OnMouseUp() protected method

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

OnPaint() protected method

Paints the control.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintContent() protected method

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

OnSizeChanged() protected method

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