C# Class TextTour.SingleLineTextEditor

SingleLineTextEditor displays, and allows the user to edit a single line of text in a single font. The cursor movement keys are operational, as well as the 'delete' and 'backspace' keys. The 'tab' key will have no effect.
Inheritance: NewTOAPIA.UI.Graphic
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
DeleteNextCharacter ( ) : void
DrawBackground ( DrawEvent devent ) : void
DrawSelf ( DrawEvent devent ) : void
OnKeyDown ( KeyboardActivityArgs ke ) : void
OnKeyPress ( KeyboardActivityArgs ke ) : void
OnMouseUp ( MouseActivityArgs e ) : void
SelectCharacterPosition ( int charPosition ) : void
SetEditMode ( EditMode newMode ) : void
SingleLineTextEditor ( string name, int x, int y, int width, int height ) : System

Protected Methods

Method Description
GetLeadingEdgeOfCharacterPosition ( int characterPosition ) : Point
GetTrailingEdgeOfCharacterPosition ( int characterPosition ) : Point
OnGainedFocus ( ) : void
OnLostFocus ( ) : void

Method Details

DeleteNextCharacter() public method

public DeleteNextCharacter ( ) : void
return void

DrawBackground() public method

public DrawBackground ( DrawEvent devent ) : void
devent NewTOAPIA.UI.DrawEvent
return void

DrawSelf() public method

public DrawSelf ( DrawEvent devent ) : void
devent NewTOAPIA.UI.DrawEvent
return void

GetLeadingEdgeOfCharacterPosition() protected method

protected GetLeadingEdgeOfCharacterPosition ( int characterPosition ) : Point
characterPosition int
return Point

GetTrailingEdgeOfCharacterPosition() protected method

protected GetTrailingEdgeOfCharacterPosition ( int characterPosition ) : Point
characterPosition int
return Point

OnGainedFocus() protected method

protected OnGainedFocus ( ) : void
return void

OnKeyDown() public method

public OnKeyDown ( KeyboardActivityArgs ke ) : void
ke NewTOAPIA.UI.KeyboardActivityArgs
return void

OnKeyPress() public method

public OnKeyPress ( KeyboardActivityArgs ke ) : void
ke NewTOAPIA.UI.KeyboardActivityArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( ) : void
return void

OnMouseUp() public method

public OnMouseUp ( MouseActivityArgs e ) : void
e NewTOAPIA.UI.MouseActivityArgs
return void

SelectCharacterPosition() public method

public SelectCharacterPosition ( int charPosition ) : void
charPosition int
return void

SetEditMode() public method

public SetEditMode ( EditMode newMode ) : void
newMode EditMode
return void

SingleLineTextEditor() public method

public SingleLineTextEditor ( string name, int x, int y, int width, int height ) : System
name string
x int
y int
width int
height int
return System