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

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

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

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

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExplorerBarItem() public method

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

SetHostedControlHeight() public method

public SetHostedControlHeight ( int height ) : void
height int
return void

m_button_Click() public method

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

m_button_MouseEnter() public method

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

m_button_MouseLeave() public method

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

m_button_Paint() public method

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
return void