DrawThemeSeperator
To draw a seperator line consistent with the current theme, use the DrawThemeSeperator function.
FUNCTION DrawThemeSeperator(r as Rect,inState as Integer) as Integer
r:
The rectangle that defines the seperator
bounds.
inState:
A value specifying the state in which the
seperator 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 DrawThemeSeparator function draws a separator line inside the rectangle passed in, which is a maximum of 2 pixels thick. The orientation of the rectangle determines where the separator line is drawn. If the rectangle is wider than it is tall, the separator line is horizontal; otherwise it is vertical.
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