C# Class Flood.GUI.Controls.ComboBox

ComboBox control.
Inheritance: Button
Mostra file Open project: FloodProject/flood Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddItem ( String label, String name = "" ) : MenuItem

Adds a new item.

Close ( ) : void

Closes the combo.

ComboBox ( Control parent ) : System

Initializes a new instance of the ComboBox class.

DeleteAll ( ) : void

Removes all items.

Open ( ) : void

Opens the combo.

Protected Methods

Method Description
Layout ( Skins skin ) : void

Lays out the control's interior according to alignment, padding, dock etc.

OnClicked ( ) : void

Internal Pressed implementation.

OnItemSelected ( Control control ) : void

Internal handler for item selected event.

OnKeyDown ( bool down ) : bool

Handler for Down Arrow keyboard event.

OnKeyUp ( bool down ) : bool

Handler for Up Arrow keyboard event.

OnKeyboardFocus ( ) : void

Handler for gaining keyboard focus.

OnLostKeyboardFocus ( ) : void

Handler for losing keyboard focus.

Render ( Skins skin ) : void

Renders the control using specified skin.

RenderFocus ( Skins skin ) : void

Renders the focus overlay.

Method Details

AddItem() public method

Adds a new item.
public AddItem ( String label, String name = "" ) : MenuItem
label String Item label (displayed).
name String Item name.
return MenuItem

Close() public method

Closes the combo.
public Close ( ) : void
return void

ComboBox() public method

Initializes a new instance of the ComboBox class.
public ComboBox ( Control parent ) : System
parent Control Parent control.
return System

DeleteAll() public method

Removes all items.
public DeleteAll ( ) : void
return void

Layout() protected method

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
return void

OnClicked() protected method

Internal Pressed implementation.
protected OnClicked ( ) : void
return void

OnItemSelected() protected method

Internal handler for item selected event.
protected OnItemSelected ( Control control ) : void
control Control Event source.
return void

OnKeyDown() protected method

Handler for Down Arrow keyboard event.
protected OnKeyDown ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyUp() protected method

Handler for Up Arrow keyboard event.
protected OnKeyUp ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnKeyboardFocus() protected method

Handler for gaining keyboard focus.
protected OnKeyboardFocus ( ) : void
return void

OnLostKeyboardFocus() protected method

Handler for losing keyboard focus.
protected OnLostKeyboardFocus ( ) : void
return void

Open() public method

Opens the combo.
public Open ( ) : void
return void

Render() protected method

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
return void

RenderFocus() protected method

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
return void