C# Class SILUBS.SharedScrControls.LabelButton

Implements a simple button-like control derived from the panel control. For the applications where I use this control, I was using a button control, but that was giving me some undesired focus problems when the button was the child of other non-form controls.
Inheritance: System.Windows.Forms.Label
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
LabelButton ( ) : System

Constructs a PanelButton

Méthodes protégées

Méthode Description
GetBackColorShade ( PaintState state ) : Color

GetBackColorShade ( PaintState state, Color normalBack ) : Color

OnMouseDown ( MouseEventArgs e ) : void

Set's the button's state and invalidates it to force redrawing.

OnMouseEnter ( EventArgs e ) : void

OnMouseLeave ( EventArgs e ) : void

OnMouseMove ( MouseEventArgs e ) : void

OnMouseUp ( MouseEventArgs e ) : void

Set's the button's state and invalidates it to force redrawing.

OnPaint ( PaintEventArgs e ) : void

OnPaintImage ( PaintEventArgs e ) : void

Paints the image on the buttons.

OnPaintText ( PaintEventArgs e ) : void

Paints the Text on the buttons.

Private Methods

Méthode Description
DeterminePaintState ( ) : void

MouseInBounds ( int x, int y ) : bool

OnPaintBackground ( PaintEventArgs e ) : void
SetTextAlignment ( ) : void

Method Details

GetBackColorShade() protected méthode

protected GetBackColorShade ( PaintState state ) : Color
state PaintState
Résultat Color

GetBackColorShade() protected méthode

protected GetBackColorShade ( PaintState state, Color normalBack ) : Color
state PaintState
normalBack Color
Résultat Color

LabelButton() public méthode

Constructs a PanelButton
public LabelButton ( ) : System
Résultat System

OnMouseDown() protected méthode

Set's the button's state and invalidates it to force redrawing.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseEnter() protected méthode

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

Set's the button's state and invalidates it to force redrawing.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnPaintImage() protected méthode

Paints the image on the buttons.
protected OnPaintImage ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnPaintText() protected méthode

Paints the Text on the buttons.
protected OnPaintText ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void