![]() |
SetThemeTextColor |
||||
Header: | Appearance.h | Carbon status: | Supported | |
Sets the current text color to be consistent with that of a specified element.
OSStatus SetThemeTextColor ( ThemeTextColor inColor, SInt16 inDepth, Boolean inIsColorDevice );
A value of type ThemeTextColor. Pass a constant specifying an interface element. SetThemeTextColor sets the current text color to be the same as the color of that elements text. See
A signed 16-bit integer. Pass a value specifying the bit depth (in bits per pixel) of the current graphics port.
A value of type Boolean. Pass true to indicate that you are drawing on a color device. Pass false for a monochrome device.
A result code. The result code appearanceBadTextColorIndexErr indicates that the text color index passed was not valid.
Your application typically uses the SetThemeTextColor function inside a DeviceLoop drawing function to set the foreground color to a theme-compliant value.
Also see the function GetThemeTextColor.
This function is available with Appearance Manager 1.0 and later.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)