DrawThemePlacard

To draw a placecard consistent with the current theme, use the DrawThemePlacard function.

FUNCTION DrawThemePlacard(r as Rect,inState) as Integer

r:
The rectangle that defines the placecard
bounds.

inState:
A value specifying the state in which the
placecard is to be drawn; see ÒDraw state
constants bellowÓ. The frame can only be drawn as
active or inactive; passing kThemeStatePressed
will result in an error being returned.

Returns:
A result code, see result codes.

Description:
The DrawThemePlacard function draws a placard inside the rectangle that is
passed.

Draw state constants:

0 - Element is drawn in its disabled,
inactive state.

1 - Element is drawn in its normal,
active state.

2 - Element is drawn in its selected,
pressed state.

Supported platforms:
* MacOS PPC
* MacOS 68k
* MacOS Carbon
Unsupported platforms:
* Windows x86