![]() |
SetUpControlTextColor |
||||
Header: | Controls.h | Carbon status: | Supported | |
Prepares a control to be drawn with a text color consistent with that of any controls in which it is embedded and with the current theme.
OSErr SetUpControlTextColor ( ControlRef inControl, SInt16 inDepth, Boolean inIsColorDevice );
A handle to the control whose text color is to be set.
A value specifying the bit depth (in pixels) of the current graphics port.
Set to true to indicate that you are drawing on a color device. Set to false for a monochrome device.
A result code.
Your control definition function may use the SetUpControlTextColor function inside a DeviceLoop drawing procedure to set a controls text color to coordinate with the current theme. Applications do not typically need to use this function.
This function is available with Mac OS 8.5 and later.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)