C# Class YamuiFramework.Controls.YamuiTabButtons

This class displays items on a list o strings, next to each other each item is clickable and triggers the TabPressed event that provides the clicked index
Inheritance: System.Windows.Forms.Button
Afficher le fichier Open project: jcaillon/3P Class Usage Examples

Méthodes publiques

Свойство Type Description
SpaceBetweenText int

Méthodes publiques

Méthode Description
GetWidth ( ) : int

Returns the width that will take the control

UpdateList ( List listOfButtons, int selectedIndex ) : void
YamuiTabButtons ( List listOfButtons, int selectedIndex ) : System

Méthodes protégées

Méthode Description
OnEnter ( EventArgs e ) : void
OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLeave ( EventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void

Private Methods

Méthode Description
GetIndexFromLocation ( Point loc ) : int
GetRect ( int index ) : Rectangle
HandlePressedButton ( ) : void

Method Details

GetWidth() public méthode

Returns the width that will take the control
public GetWidth ( ) : int
Résultat int

OnEnter() protected méthode

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

OnGotFocus() protected méthode

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

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnLeave() protected méthode

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

OnLostFocus() protected méthode

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

OnMouseDown() protected méthode

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

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

OnPreviewKeyDown() protected méthode

protected OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void
e System.Windows.Forms.PreviewKeyDownEventArgs
Résultat void

UpdateList() public méthode

public UpdateList ( List listOfButtons, int selectedIndex ) : void
listOfButtons List
selectedIndex int
Résultat void

YamuiTabButtons() public méthode

public YamuiTabButtons ( List listOfButtons, int selectedIndex ) : System
listOfButtons List
selectedIndex int
Résultat System

Property Details

SpaceBetweenText public_oe property

Spacing between items
public int SpaceBetweenText
Résultat int