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

Encapsulates a single item within a SimpleExplorerBar control.
Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
ExplorerBarItem ( string text, Control hostedControl ) : System

Construct an SimpleExplorerBar

SetHostedControlHeight ( int height ) : void

m_button_Click ( object sender, EventArgs e ) : void

Toggle item's expanded state.

m_button_MouseEnter ( object sender, EventArgs e ) : void

Redraw button in hot state when mouse moves over it.

m_button_MouseLeave ( object sender, EventArgs e ) : void

Redraw button in normal state when mouse moves leaves it.

m_button_Paint ( object sender, PaintEventArgs e ) : void

We don't want a typical looking button. Therefore, draw it ourselves.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
DrawButtonBackground ( Graphics g ) : void

Draws the background of the button.

DrawExpandCollapseGlyph ( Graphics g ) : void

Draws the expand or collapse glyph. The glyph drawn depends on the visible state of the hosted control.

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ExplorerBarItem() public méthode

Construct an SimpleExplorerBar
public ExplorerBarItem ( string text, Control hostedControl ) : System
text string
hostedControl System.Windows.Forms.Control
Résultat System

SetHostedControlHeight() public méthode

public SetHostedControlHeight ( int height ) : void
height int
Résultat void

m_button_Click() public méthode

Toggle item's expanded state.
public m_button_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

m_button_MouseEnter() public méthode

Redraw button in hot state when mouse moves over it.
public m_button_MouseEnter ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

m_button_MouseLeave() public méthode

Redraw button in normal state when mouse moves leaves it.
public m_button_MouseLeave ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

m_button_Paint() public méthode

We don't want a typical looking button. Therefore, draw it ourselves.
public m_button_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
Résultat void