C# Class Habanero.Faces.Win.ButtonSizePolicyWin

An implementation of IButtonSizePolicy that will size all the buttons equally based on the widest one. It also maintains a minimum button size equal to the screen resolution / 20.
Inheritance: IButtonSizePolicy
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
ButtonSizePolicyWin ( IControlFactory controlFactory ) : System.Windows.Forms

Constructor

RecalcButtonSizes ( IControlCollection buttonCollection ) : void

Recalculates the button sizes of the given collection of buttons.

Method Details

ButtonSizePolicyWin() public method

Constructor
public ButtonSizePolicyWin ( IControlFactory controlFactory ) : System.Windows.Forms
controlFactory IControlFactory The to use.
return System.Windows.Forms

RecalcButtonSizes() public method

Recalculates the button sizes of the given collection of buttons.
public RecalcButtonSizes ( IControlCollection buttonCollection ) : void
buttonCollection IControlCollection
return void