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

Extends the panel control to support text, including text containing mnemonic specifiers.
Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: sillsdev/FieldWorks

Private Properties

Свойство Type Description
CalculateTextRectangle void

Méthodes publiques

Méthode Description
ChildControl_LocationChanged ( object sender, EventArgs e ) : void

ChildControl_Resize ( object sender, EventArgs e ) : void

FwTextPanel ( ) : System

Méthodes protégées

Méthode Description
OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void

OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void

OnPaint ( PaintEventArgs e ) : void

Paint the text on the panel, if there is any.

OnResize ( EventArgs e ) : void

Make sure to repaint when resizing.

ProcessMnemonic ( char charCode ) : bool

Make sure the text in the header label acts like a normal label in that it responds to Alt+letter keys to send focus to the next control in the tab order.

Private Methods

Méthode Description
CalculateTextRectangle ( ) : void

Calculates the rectangle of the text when there are child controls. This method assumes that controls to the right of the text should clip the text. However, if the controls are above and below the text, this method will probably screw up the text drawing.

Method Details

ChildControl_LocationChanged() public méthode

public ChildControl_LocationChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

ChildControl_Resize() public méthode

public ChildControl_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

FwTextPanel() public méthode

public FwTextPanel ( ) : System
Résultat System

OnControlAdded() protected méthode

protected OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs
Résultat void

OnControlRemoved() protected méthode

protected OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs
Résultat void

OnPaint() protected méthode

Paint the text on the panel, if there is any.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnResize() protected méthode

Make sure to repaint when resizing.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

ProcessMnemonic() protected méthode

Make sure the text in the header label acts like a normal label in that it responds to Alt+letter keys to send focus to the next control in the tab order.
protected ProcessMnemonic ( char charCode ) : bool
charCode char
Résultat bool