C# Class SIL.FieldWorks.Common.Controls.CharacterInfoToolTip

Provides an owner-drawn class that displays Unicode values for a text string and the ICU character name when the text string is a single character.
Inheritance: System.Windows.Forms.ToolTip
Datei anzeigen Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CharacterInfoToolTip ( ) : System

Initializes a new instance of the CharacterInfoToolTip class.

HandleDraw ( object sender, DrawToolTipEventArgs e ) : void

Handles the draw.

HandlePopup ( object sender, System.Windows.Forms.PopupEventArgs e ) : void

Handles the popup.

Hide ( ) : void

Hides this instance.

Show ( Control ctrl, string chr ) : void

Shows tooltip for the specified control and character.

Show ( Control ctrl, string chr, Font fnt ) : void

Shows tooltip for the specified character at the specified coordinate relative to the grid control specified at construction.

Show ( string chr ) : void

Shows tooltip for the specified character.

Show ( string chr, Font fnt ) : void

Shows tooltip for the specified character at the specified coordinate relative to the grid control specified at construction.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up the title font we created.

Private Methods

Method Description
BuildToolTipContent ( string chr ) : void

Builds the content of the tool tip.

Method Details

CharacterInfoToolTip() public method

Initializes a new instance of the CharacterInfoToolTip class.
public CharacterInfoToolTip ( ) : System
return System

Dispose() protected method

Clean up the title font we created.
protected Dispose ( bool disposing ) : void
disposing bool
return void

HandleDraw() public method

Handles the draw.
public HandleDraw ( object sender, DrawToolTipEventArgs e ) : void
sender object
e System.Windows.Forms.DrawToolTipEventArgs
return void

HandlePopup() public method

Handles the popup.
public HandlePopup ( object sender, System.Windows.Forms.PopupEventArgs e ) : void
sender object
e System.Windows.Forms.PopupEventArgs
return void

Hide() public method

Hides this instance.
public Hide ( ) : void
return void

Show() public method

Shows tooltip for the specified control and character.
public Show ( Control ctrl, string chr ) : void
ctrl System.Windows.Forms.Control
chr string
return void

Show() public method

Shows tooltip for the specified character at the specified coordinate relative to the grid control specified at construction.
public Show ( Control ctrl, string chr, Font fnt ) : void
ctrl System.Windows.Forms.Control
chr string
fnt System.Drawing.Font
return void

Show() public method

Shows tooltip for the specified character.
public Show ( string chr ) : void
chr string
return void

Show() public method

Shows tooltip for the specified character at the specified coordinate relative to the grid control specified at construction.
public Show ( string chr, Font fnt ) : void
chr string
fnt System.Drawing.Font
return void