DrawThemeSecondaryGroup

To draw a secondary group box frame consistent with the current theme, use the DrawThemeSecondaryGroup function.

FUNCTION DrawThemeSecondaryGroup(r as Rect,inState as Integer) as Integer

left,top,right,bottom:
The rectangle that defines the group box
bounds.

inState:
A value specifying the state in which the
secondary group box frame 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 DrawThemeSecondaryGroup function allow you to nest a secondary group box frame within the primary group box frame. The secondary group box frame is drawn inside the rectangle that is passed and is a maximum of 2 pixels thick.

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