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

Inheritance: System.Windows.Forms.Label, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

XButton ( ) : System

Méthodes protégées

Méthode Description
OnMouseDown ( MouseEventArgs e ) : void

Change appearance when mouse is pressed.

OnMouseLeave ( EventArgs e ) : void

Repaint the button when the mouse isn't over it.

OnMouseMove ( MouseEventArgs e ) : void

Track when the mouse leaves the control when a mouse button is pressed.

OnMouseUp ( MouseEventArgs e ) : void

Change appearance when the mouse button is released.

OnPaint ( PaintEventArgs e ) : void

OnPaintBackground ( PaintEventArgs e ) : void

OnSystemColorsChanged ( EventArgs e ) : void

Private Methods

Méthode Description
DrawArrow ( PaintEventArgs e ) : void

Draws the button with an image.

DrawText ( PaintEventArgs e ) : void

Draws the button's text.

DrawWithImage ( PaintEventArgs e ) : void

Draws the button with an image.

DrawWithX ( PaintEventArgs e ) : void

Draw the button with text.

GetCorrectVisualStyleArrowElement ( ) : System.Windows.Forms.VisualStyles.VisualStyleElement

Gets the correct visual style arrow button and in the correct state.

Method Details

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

OnMouseDown() protected méthode

Change appearance when mouse is pressed.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseLeave() protected méthode

Repaint the button when the mouse isn't over it.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

Track when the mouse leaves the control when a mouse button is pressed.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

Change appearance when the mouse button is released.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

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

OnPaintBackground() protected méthode

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

OnSystemColorsChanged() protected méthode

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

XButton() public méthode

public XButton ( ) : System
Résultat System