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

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

Private Properties

Property Type Description
CalculateTextRectangle void

Public Methods

Method Description
ChildControl_LocationChanged ( object sender, EventArgs e ) : void

ChildControl_Resize ( object sender, EventArgs e ) : void

FwTextPanel ( ) : System

Protected Methods

Method 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

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

public ChildControl_LocationChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ChildControl_Resize() public method

public ChildControl_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

FwTextPanel() public method

public FwTextPanel ( ) : System
return System

OnControlAdded() protected method

protected OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs
return void

OnControlRemoved() protected method

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

OnPaint() protected method

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

OnResize() protected method

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

ProcessMnemonic() protected method

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
return bool