-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.rc
127 lines (100 loc) · 5.05 KB
/
config.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#include <windows.h>
#include "resource.h"
STRINGTABLE
BEGIN
IDS_DESCRIPTION, "Phosphor 2"
END
ID_ICON ICON DISCARDABLE "phosphor2.ico"
IDR_SOURCE RCDATA "phosphor2.c"
IDR_RESOURCE_H RCDATA "resource.h"
IDR_RC RCDATA "config.rc"
IDR_MAKEFILE RCDATA "Makefile"
IDD_MAIN_WINDOW DIALOG 6, 18, UI_INITIAL_WIDTH, UI_INITIAL_HEIGHT
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Phosphor2 Configuration"
FONT 8, "MS Sans Serif"
BEGIN
RTEXT "Font: ", 0,
UI_BORDER, FONT_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
RTEXT "Background (RGB): ", 0,
UI_BORDER, BACKGROUND_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
RTEXT "Text Color (RGB): ", 0,
UI_BORDER, FOREGROUND_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
RTEXT "Text Scale: ", 0,
UI_BORDER, TEXT_SCALE_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
RTEXT "Cursor Rate (ms): ", 0,
UI_BORDER, CURSOR_RATE_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
RTEXT "Text Rate (us): ", 0,
UI_BORDER, TEXT_RATE_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
RTEXT "Decay: ", 0,
UI_BORDER, DECAY_OFFSET_Y, UI_DESCRIPTION_WIDTH,
UI_LINE_HEIGHT
LTEXT "Files to print (semicolon delimited, wildcards permitted): ",
0,
UI_BORDER, TEXT_FILES_DESCRIPTION_OFFSET_Y,
TEXT_FILES_WIDTH, UI_LINE_HEIGHT
CONTROL "", IDE_TEXT_FILES, "EDIT",
ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN |
WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
UI_BORDER, TEXT_FILES_OFFSET_Y, TEXT_FILES_WIDTH,
TEXT_FILES_HEIGHT
CONTROL "", IDE_FONT, "EDIT",
ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE |
WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, FONT_OFFSET_Y, (2 * UI_MEDIUM_BOX_WIDTH),
UI_LINE_HEIGHT
CONTROL "", IDE_BACKGROUND_RED, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, BACKGROUND_OFFSET_Y, UI_SMALL_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_BACKGROUND_GREEN, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_GREEN_OFFSET_X, BACKGROUND_OFFSET_Y, UI_SMALL_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_BACKGROUND_BLUE, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BLUE_OFFSET_X, BACKGROUND_OFFSET_Y, UI_SMALL_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_FOREGROUND_RED, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, FOREGROUND_OFFSET_Y, UI_SMALL_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_FOREGROUND_GREEN, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_GREEN_OFFSET_X, FOREGROUND_OFFSET_Y, UI_SMALL_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_FOREGROUND_BLUE, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BLUE_OFFSET_X, FOREGROUND_OFFSET_Y, UI_SMALL_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_TEXT_SCALE, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, TEXT_SCALE_OFFSET_Y, UI_MEDIUM_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_CURSOR_RATE, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, CURSOR_RATE_OFFSET_Y, UI_MEDIUM_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_TEXT_RATE, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, TEXT_RATE_OFFSET_Y, UI_MEDIUM_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "", IDE_DECAY, "EDIT",
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP,
EDIT_BOX_OFFSET_X, DECAY_OFFSET_Y, UI_MEDIUM_BOX_WIDTH,
UI_LINE_HEIGHT
CONTROL "OK", IDC_OK, "BUTTON",
BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP,
OK_OFFSET_X, OK_CANCEL_OFFSET_Y, UI_BUTTON_WIDTH,
UI_LINE_HEIGHT
CONTROL "Cancel", IDC_CANCEL, "BUTTON",
WS_CHILD | WS_VISIBLE | WS_TABSTOP,
CANCEL_OFFSET_X, OK_CANCEL_OFFSET_Y, UI_BUTTON_WIDTH,
UI_LINE_HEIGHT
END