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
Mostrar archivo Open project: jcaillon/3P Class Usage Examples

Public Properties

Property Type Description
SpaceBetweenText int

Public Methods

Method Description
GetWidth ( ) : int

Returns the width that will take the control

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

Protected Methods

Method 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

Method Description
GetIndexFromLocation ( Point loc ) : int
GetRect ( int index ) : Rectangle
HandlePressedButton ( ) : void

Method Details

GetWidth() public method

Returns the width that will take the control
public GetWidth ( ) : int
return int

OnEnter() protected method

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

OnGotFocus() protected method

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

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLeave() protected method

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

OnLostFocus() protected method

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

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseEnter() protected method

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

OnMouseLeave() protected method

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

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

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

OnPreviewKeyDown() protected method

protected OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void
e System.Windows.Forms.PreviewKeyDownEventArgs
return void

UpdateList() public method

public UpdateList ( List listOfButtons, int selectedIndex ) : void
listOfButtons List
selectedIndex int
return void

YamuiTabButtons() public method

public YamuiTabButtons ( List listOfButtons, int selectedIndex ) : System
listOfButtons List
selectedIndex int
return System

Property Details

SpaceBetweenText public_oe property

Spacing between items
public int SpaceBetweenText
return int