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

Encapsulates a simple panel whose border, by default is 3D if visual styles aren't enabled and is a single line (painted using visual styles) when visual styles are enabled.
Inheritance: FwTextPanel
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
FwPanel ( ) : System

Protected Methods

Method Description
OnClientSizeChanged ( EventArgs e ) : void

After the panel has been resized, force the border to be repainted. I found that often, after resizing the panel at runtime (e.g. when it's docked inside a splitter panel and the splitter moved), the portion of the border that was newly repainted didn't show the overriden border color handled by the WndProc above.

OnPaintBackground ( PaintEventArgs e ) : void

WndProc ( Message &m ) : void

Catch the non client area paint message so we can paint a border around the explorer bar that isn't black.

Method Details

FwPanel() public method

public FwPanel ( ) : System
return System

OnClientSizeChanged() protected method

After the panel has been resized, force the border to be repainted. I found that often, after resizing the panel at runtime (e.g. when it's docked inside a splitter panel and the splitter moved), the portion of the border that was newly repainted didn't show the overriden border color handled by the WndProc above.
protected OnClientSizeChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e System.Windows.Forms.PaintEventArgs
return void

WndProc() protected method

Catch the non client area paint message so we can paint a border around the explorer bar that isn't black.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void