DrawThemeEditTextFrame

To draw an editable text frame consistent with the current theme, use the DrawThemeEditTextFrame function.

FUNCTION DrawThemeEditTextFrame(r as Rect,inState) : Integer

r:
The rectangle that defines the editable
textframe bounds.

inState:
A value specifying the state in which the
editable text 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 DrawThemeEditTextFrame function draws an editable text frame (a maximum of 2 pixels thick) outside the rectangle passed in. The rectangle should be the same as the one passed in the function DrawThemeFocusRect, so you can get the correct focus look for your editable text control. You should not use these frames for items other than editable text fields.

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