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

Inheritance: System.Windows.Forms.Label, IFWDisposable
ファイルを表示 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

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

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

OnMouseDown() protected method

Change appearance when mouse is pressed.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseLeave() protected method

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

OnMouseMove() protected method

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

OnMouseUp() protected method

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

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnSystemColorsChanged() protected method

protected OnSystemColorsChanged ( EventArgs e ) : void
e System.EventArgs
return void

XButton() public method

public XButton ( ) : System
return System