SetThemeTextColor
To set elements forground color for drawing text to appearance savy color and pattern, use the SetThemeTextColor function.
FUNCTION SetThemeTextColor(ThemeTextColor as Integer,inDepth as Integer,isColorDevice as Boolean) as Integer
ThemeTextColor:
A value representing the text
color (See text color
constants bellow)
inDepth:
The bit depth (in pixels) of the
current graphics port.
inIsColorDevice:
A Boolean value. Set to true to
indicate that you are drawing on
a color device. Set to false for
a monochrome device. function result
A result code.
Returns:
A result code, see result codes.
Description:
The SetThemeTextColor function is typically used inside a DeviceLoop drawing procedure to set the foreground color for drawing text in order to coordinate with the current theme.
Text colors:
1 - Text color for active dialog box.
2 - Text color for inactive dialog box.
3 - Text color for active alert box.
The text color for alert boxes may
differ from dialog box text color.
4 - Text color for inactive alert box.
The text color for alert boxes may
differ from dialog box text color.
5 - Text color for active modeless dialog
box.
6 - Text color for inactive modeless
dialog box.
7 - Text color for active window header.
8 - Text color for inactive window
header.
9 - Text color for active placard.
10 - Text color for inactive placard.
11 - Text color for highlighted placard.
12 - Text color for active push button.
13 - Text color for inactive push button.
14 - Text color for highlighted push
button.
15 - Text color for active bevel button.
16 - Text color for inactive bevel
button.
17 - Text color for highlighted bevel button.
18 - Text color for active pop-up menu
button.
19 - Text color for inactive pop-up menu
button.
20 - Text color for highlighted pop-up menu
button.
21 - Text color for icon label.
22 - Text color for list view.
23 - Text color for active document window
title. Available with Appearance 1.0.1
and later.
24 - Text color for inactive document window
title. Available with Appearance 1.0.1
and later.
25 - Text color for active movable modal window
title. Available with Appearance 1.0.1 and
later.
26 - Text color for inactive movable modal window
title. Available with Appearance 1.0.1 and
later.
27 - Text color for active utility (floating)
window title. Available with Appearance
1.0.1 and later.
28 - Text color for inactive utility (floating)
window title. Available with Appearance 1.0.1
and later.
29 - Text color for active pop-up window title.
Available with Appearance 1.0.1 and later.
30 - Text color for inactive pop-up window
title. Available with Appearance 1.0.1
and later.
31 - Text color for active root menu.
Available with Appearance 1.0.1 and
later.
32 - Text color for selected root menu.
Available with Appearance 1.0.1 and
later.
33 - Text color for disabled root menu.
Available with Appearance 1.0.1 and
later.
34 - Text color for active menu item.
Available with Appearance 1.0.1 and
later.
35 - Text color for inactive menu item.
Available with Appearance 1.0.1 and
later.
36 - Text color for disabled menu item.
Available with Appearance 1.0.1 and
later.
37 - Text color for active pop-up menu label.
Available with Appearance 1.0.1
and later.
38 - Text color for inactive pop-up menu
label. Available with Appearance
1.0.1 and later.
Supported platforms:
* MacOS PPC
* MacOS 68k
* MacOS Carbon
Unsupported platforms:
* Windows x86