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
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
FwPanel ( ) : System

Méthodes protégées

Méthode 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 méthode

public FwPanel ( ) : System
Résultat System

OnClientSizeChanged() protected méthode

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
Résultat void

OnPaintBackground() protected méthode

protected OnPaintBackground ( PaintEventArgs e ) : void
e System.Windows.Forms.PaintEventArgs
Résultat void

WndProc() protected méthode

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
Résultat void