DrawThemeListBoxFrame

To draw a list box frame consistent with the current theme, use the DrawThemeListBoxFrame function.

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

r:
The rectangle that defines the list
box frame bounds.

inState:
A value specifying the state in which the
list 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 DrawThemeListBoxFrame function draws a list box frame (a maximum of 2 pixels thick) outside the rectangle passed in. The rectangle should be the same as the one passed into the function DrawThemeFocusRect (page 43) so you can get the correct focus look for your list box control.

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