Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.drawButton

Draws a button control in the specified rectangle.

Syntax

public final void drawButton( Rectangle rect**, int** state )

public final void drawButton( int x**, int** y**, int** width**, int** height**, int** state )

Parameters

rect

A Rectangle object that specifies the size and position of the button to draw.

x

The x-coordinate of the rectangle in which to draw the button.

y

The y-coordinate of the rectangle in which to draw the button.

width

The width of the button.

height

The height of the button.

state

Specifies the state of the button to draw. This value must be one of the enumeration constants defined in the ButtonState class.

See Also   drawCaptionButton, drawCheckBox, drawComboButton, drawMenuGlyph, drawRadioButton, drawScrollButton, drawSizeGrip