DrawThemeGenericWell
To draw an image well frame consistent with the current theme, use the DrawThemeGenericWell function.
FUNCTION DrawThemeGenericWell(r as Rect,inState,inFillCenter) as Integer
r:
The rectangle that defines the list
box frame bounds.
inState:
A value specifying the state in which the
image well 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.
inFillCenter:
A Boolean value indicating whether the
image well frame is to be filled in with
white.
Returns:
A result code, see result codes.
Description:
The DrawThemeGenericWell function draws an image well frame, for use with custom image well controls. You can specify that the center of the well be filled in with white.
Special considderations:
Make sure Appearance Manager 1.0.1 is present before calling the DrawThemeGenericWell function. See ÒAppearance Manager Gestalt Selector ConstantsÓ for details on how to determine if the Appearance Manager is present and what its version is, if so.
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