C# Класс 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.
Наследование: System.Windows.Forms.Label
Показать файл Открыть проект

Открытые методы

Метод Описание
LabelButton ( ) : System

Constructs a PanelButton

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
DeterminePaintState ( ) : void

MouseInBounds ( int x, int y ) : bool

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

Описание методов

GetBackColorShade() защищенный Метод

protected GetBackColorShade ( PaintState state ) : Color
state PaintState
Результат Color

GetBackColorShade() защищенный Метод

protected GetBackColorShade ( PaintState state, Color normalBack ) : Color
state PaintState
normalBack Color
Результат Color

LabelButton() публичный Метод

Constructs a PanelButton
public LabelButton ( ) : System
Результат System

OnMouseDown() защищенный Метод

Set's the button's state and invalidates it to force redrawing.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseEnter() защищенный Метод

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

OnMouseLeave() защищенный Метод

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Результат void

OnMouseMove() защищенный Метод

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseUp() защищенный Метод

Set's the button's state and invalidates it to force redrawing.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnPaint() защищенный Метод

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnPaintImage() защищенный Метод

Paints the image on the buttons.
protected OnPaintImage ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnPaintText() защищенный Метод

Paints the Text on the buttons.
protected OnPaintText ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void