Graphics.drawCaptionButton

Overview | Methods | This Package | All Packages

Graphics.drawCaptionButton

Draws a Win32 window caption button in the specified rectangle.

Syntax

public final void drawCaptionButton( Rectangle rect, int button, int state )

public final void drawCaptionButton( int x, int y, int width, int height, int button, int state )

Parameters

rect

A Rectangle object that specifies the rectangle in which to draw the button.

button

A constant that identifies the caption button to draw. This value must be one of the enumeration constants defined in the CaptionButton class.

state

A constant that specifies the button state. This value must be one of the enumeration constants defined in the ButtonState class.

x

The x-coordinate of the upper-left corner of the drawing rectangle.

y

The y-coordinate of the upper-left corner of the drawing rectangle.

width

The width of the button.

height

The height of the button.

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