Creates a new button

Namespace: Skewworks.NETMF.Controls
Assembly: Skewworks.NETMF.Controls (in Skewworks.NETMF.Controls.dll) Version: 2.5.0.0 (2.5.0.0)

Syntax

C#
public Button(
	string name,
	string text,
	Font font,
	int x,
	int y,
	int width,
	int height,
	Color normalTextColor,
	Color pressedTextColor,
	Color borderColorColor,
	Color pressedBorderColorColor,
	bool showFocusRect = true
)

Parameters

name
Type: System..::..String
Name of the button
text
Type: System..::..String
Content text of the button
font
Type: Font
Font to render the content text
x
Type: System..::..Int32
X position relative to it's parent
y
Type: System..::..Int32
Y position relative to it's parent
width
Type: System..::..Int32
Width of the button in pixel
height
Type: System..::..Int32
Height of the button in pixel
normalTextColor
Type: Color
Normal text color (unpressed)
pressedTextColor
Type: Color
Text color for pressed state
borderColorColor
Type: Color
Normal border color (unpressed)
pressedBorderColorColor
Type: Color
Border color for pressed state
showFocusRect (Optional)
Type: System..::..Boolean
true if the focus rectangle should be visible; false if not

See Also