Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

377 lines
16 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: console.rc
  3. *
  4. * Copyright (c) 1985-95, Microsoft Corporation
  5. *
  6. * Constants
  7. *
  8. * History:
  9. * 08-21-91 Created.
  10. \***************************************************************************/
  11. #include <windows.h>
  12. #include <ntverp.h>
  13. #include <commctrl.h>
  14. #include "dialogs.h"
  15. #include "console.h"
  16. IDI_CONSOLE ICON console.ico
  17. //
  18. // Dialogs
  19. //
  20. //
  21. // This is the template for the settings dialog
  22. //
  23. DID_SETTINGS DIALOG 0, 0, 233, 226
  24. CAPTION " Options "
  25. STYLE WS_VISIBLE | WS_CAPTION | WS_CHILD | DS_MODALFRAME
  26. FONT 8,"MS Shell Dlg"
  27. BEGIN
  28. GROUPBOX "Cursor Size", -1, 10, 11, 120, 44
  29. AUTORADIOBUTTON "&Small", IDD_CURSOR_SMALL, 14, 23, 84, 10,
  30. WS_TABSTOP | WS_GROUP
  31. AUTORADIOBUTTON "&Medium", IDD_CURSOR_MEDIUM, 14, 33, 84, 10,
  32. AUTORADIOBUTTON "&Large", IDD_CURSOR_LARGE, 14, 43, 84, 10,
  33. GROUPBOX "Command History", -1, 10, 57, 120, 59, WS_GROUP
  34. LTEXT "&Buffer Size:", -1, 14, 71, 78, 9
  35. EDITTEXT IDD_HISTORY_SIZE, 92, 69, 31, 12, WS_GROUP | WS_TABSTOP
  36. CONTROL "", IDD_HISTORY_SIZESCROLL, UPDOWN_CLASS,
  37. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  38. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  39. LTEXT "&Number of Buffers:", -1, 14, 86, 78, 9
  40. EDITTEXT IDD_HISTORY_NUM, 92, 84, 31, 12, WS_GROUP | WS_TABSTOP
  41. CONTROL "", IDD_HISTORY_NUMSCROLL, UPDOWN_CLASS,
  42. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  43. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  44. AUTOCHECKBOX "&Discard Old Duplicates", IDD_HISTORY_NODUP, 14, 101, 108, 9
  45. GROUPBOX "Edit Options",-1,141,57,86,59
  46. CONTROL "&QuickEdit Mode", IDD_QUICKEDIT, "Button",
  47. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 146, 71, 75, 10
  48. CONTROL "&Insert Mode", IDD_INSERT, "Button",
  49. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 146, 85, 75, 10
  50. CONTROL "&AutoComplete", IDD_AUTOCOMPLETE, "Button",
  51. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 146, 99, 75, 10
  52. GROUPBOX "Display Options", IDD_DISPLAY_GROUPBOX, 141, 11, 86, 44, WS_GROUP
  53. AUTORADIOBUTTON "&Window", IDD_WINDOWED, 144, 25, 64, 12,
  54. WS_TABSTOP | WS_GROUP
  55. AUTORADIOBUTTON "F&ull Screen", IDD_FULLSCREEN, 144, 37, 64, 12
  56. #if defined(FE_SB)
  57. GROUPBOX "Default code page", IDD_LANGUAGE_GROUPBOX, 10, 118, 217, 34, WS_GROUP
  58. COMBOBOX IDD_LANGUAGELIST, 24, 132, 188, 78,
  59. CBS_SORT |
  60. CBS_DISABLENOSCROLL |
  61. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP | WS_GROUP
  62. #endif
  63. END
  64. #if defined(FE_SB) // v-HirShi Nov.20.1996
  65. //
  66. // This is the template for the settings dialog called from console
  67. //
  68. DID_SETTINGS2 DIALOG 0, 0, 233, 226
  69. CAPTION " Options "
  70. STYLE WS_VISIBLE | WS_CAPTION | WS_CHILD | DS_MODALFRAME
  71. FONT 8,"MS Shell Dlg"
  72. BEGIN
  73. GROUPBOX "Cursor Size", -1, 10, 11, 120, 44
  74. AUTORADIOBUTTON "&Small", IDD_CURSOR_SMALL, 14, 23, 84, 10,
  75. WS_TABSTOP | WS_GROUP
  76. AUTORADIOBUTTON "&Medium", IDD_CURSOR_MEDIUM, 14, 33, 84, 10,
  77. AUTORADIOBUTTON "&Large", IDD_CURSOR_LARGE, 14, 43, 84, 10,
  78. GROUPBOX "Command History", -1, 10, 57, 120, 59, WS_GROUP
  79. LTEXT "&Buffer Size:", -1, 14, 71, 78, 9
  80. EDITTEXT IDD_HISTORY_SIZE, 92, 69, 31, 12, WS_GROUP | WS_TABSTOP
  81. CONTROL "", IDD_HISTORY_SIZESCROLL, UPDOWN_CLASS,
  82. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  83. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  84. LTEXT "&Number of Buffers:", -1, 14, 86, 78, 9
  85. EDITTEXT IDD_HISTORY_NUM, 92, 84, 31, 12, WS_GROUP | WS_TABSTOP
  86. CONTROL "", IDD_HISTORY_NUMSCROLL, UPDOWN_CLASS,
  87. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  88. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  89. AUTOCHECKBOX "&Discard Old Duplicates", IDD_HISTORY_NODUP, 14, 101, 108, 9
  90. GROUPBOX "Edit Options",-1,141,57,86,59
  91. CONTROL "&QuickEdit Mode", IDD_QUICKEDIT, "Button",
  92. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 146, 71, 75, 10
  93. CONTROL "&Insert Mode", IDD_INSERT, "Button",
  94. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 146, 85, 75, 10
  95. GROUPBOX "Display Options", IDD_DISPLAY_GROUPBOX, 141, 11, 86, 44, WS_GROUP
  96. AUTORADIOBUTTON "&Window", IDD_WINDOWED, 144, 25, 64, 12,
  97. WS_TABSTOP | WS_GROUP
  98. AUTORADIOBUTTON "F&ull Screen", IDD_FULLSCREEN, 144, 37, 64, 12
  99. GROUPBOX "Current code page", IDD_LANGUAGE_GROUPBOX, 10, 118, 217, 34, WS_GROUP
  100. LTEXT "",IDD_LANGUAGE, 26, 134, 184, 8, WS_GROUP
  101. END
  102. #endif
  103. //
  104. // This is the template for the font selection dialog
  105. //
  106. DID_FONTDLG DIALOG 0, 0, 233, 226
  107. CAPTION " Font "
  108. STYLE WS_VISIBLE | WS_CAPTION | WS_CHILD | DS_MODALFRAME
  109. FONT 8,"MS Shell Dlg"
  110. BEGIN
  111. // Window Preview (top left)
  112. //
  113. LTEXT "Window Preview", IDD_PREVIEWLABEL, 5, 4, 109, 8
  114. CONTROL "", IDD_PREVIEWWINDOW, "WOAWinPreview",
  115. WS_BORDER | WS_CHILD, 5, 17, 109, 83
  116. // Buttons (bottom)
  117. //
  118. CONTROL "&Bold fonts", IDD_BOLDFONT, "Button",
  119. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 60, 104, 60, 10
  120. // FaceName listbox (top middle)
  121. LTEXT "&Font", IDD_STATIC, 5, 104, 20, 8
  122. LISTBOX IDD_FACENAME, 5, 117, 109, 42,
  123. LBS_SORT | WS_VSCROLL | WS_TABSTOP |
  124. LBS_OWNERDRAWFIXED | LBS_HASSTRINGS
  125. // PixelSize listbox & PointSize combobox (top right)
  126. //
  127. LTEXT "&Size", IDD_FONTSIZE, 118, 4, 60, 8
  128. LISTBOX IDD_PIXELSLIST, 118, 17, 50, 83,
  129. LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
  130. COMBOBOX IDD_POINTSLIST, 118, 17, 30, 86,
  131. CBS_SORT |
  132. CBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
  133. // Bottom portion (middle)
  134. //
  135. GROUPBOX "", IDD_GROUP, 5, 169, 218, 46
  136. CONTROL "", IDD_FONTWINDOW, "WOAFontPreview",
  137. WS_BORDER | WS_CHILD, 12, 179, 118, 30
  138. LTEXT "Each character is:", IDD_STATIC2, 133, 179, 75, 8, NOT
  139. WS_GROUP
  140. RTEXT "", IDD_FONTWIDTH, 134, 189, 12, 8, NOT WS_GROUP
  141. LTEXT "screen pixels wide", IDD_STATIC3, 148, 189, 65, 8, NOT
  142. WS_GROUP
  143. LTEXT "screen pixels high", IDD_STATIC4, 148, 199, 65, 8, NOT
  144. WS_GROUP
  145. RTEXT "", IDD_FONTHEIGHT, 134, 199, 12, 8, NOT WS_GROUP
  146. END
  147. //
  148. // This is the template for the screenbuffer size dialog
  149. //
  150. DID_SCRBUFSIZE DIALOG 0, 0, 233, 226
  151. CAPTION " Layout "
  152. STYLE WS_VISIBLE | WS_CAPTION | WS_CHILD | DS_MODALFRAME
  153. FONT 8,"MS Shell Dlg"
  154. BEGIN
  155. // Window Preview (top left)
  156. //
  157. LTEXT "Window Preview", IDD_PREVIEWLABEL, 5, 4, 109, 8
  158. CONTROL "", IDD_PREVIEWWINDOW, "WOAWinPreview",
  159. WS_BORDER | WS_CHILD, 5, 17, 109, 83
  160. LTEXT "", IDD_WARNING, 5, 99, 109, 57
  161. GROUPBOX "Screen Buffer Size", -1, 118, 11, 110, 42
  162. LTEXT "&Width:", -1, 122, 25, 54, 9
  163. EDITTEXT IDD_SCRBUF_WIDTH, 186, 23, 36, 12,
  164. ES_AUTOHSCROLL | WS_GROUP | WS_TABSTOP
  165. CONTROL "", IDD_SCRBUF_WIDTHSCROLL, UPDOWN_CLASS,
  166. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  167. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  168. LTEXT "&Height:", -1, 122, 39, 54, 9
  169. EDITTEXT IDD_SCRBUF_HEIGHT, 186, 37, 36, 12,
  170. ES_AUTOHSCROLL | WS_GROUP | WS_TABSTOP
  171. CONTROL "", IDD_SCRBUF_HEIGHTSCROLL, UPDOWN_CLASS,
  172. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  173. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  174. GROUPBOX "Window Size", -1, 118, 55, 110, 42
  175. LTEXT "W&idth:", -1, 122, 69, 54, 9
  176. EDITTEXT IDD_WINDOW_WIDTH, 186, 67, 36, 12,
  177. ES_AUTOHSCROLL | WS_GROUP | WS_TABSTOP
  178. CONTROL "", IDD_WINDOW_WIDTHSCROLL, UPDOWN_CLASS,
  179. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  180. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  181. LTEXT "H&eight:", -1, 122, 83, 54, 9
  182. EDITTEXT IDD_WINDOW_HEIGHT, 186, 81, 36, 12,
  183. ES_AUTOHSCROLL | WS_GROUP | WS_TABSTOP
  184. CONTROL "", IDD_WINDOW_HEIGHTSCROLL, UPDOWN_CLASS,
  185. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  186. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  187. GROUPBOX "Window Position", -1, 118, 99, 110, 57
  188. LTEXT "&Left:", -1, 122, 113, 54, 9
  189. EDITTEXT IDD_WINDOW_POSX, 186, 111, 36, 12,
  190. ES_AUTOHSCROLL | WS_GROUP | WS_TABSTOP
  191. CONTROL "", IDD_WINDOW_POSXSCROLL, UPDOWN_CLASS,
  192. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  193. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  194. LTEXT "&Top:", -1, 122, 127, 54, 9
  195. EDITTEXT IDD_WINDOW_POSY, 186, 125, 36, 12,
  196. ES_AUTOHSCROLL | WS_GROUP | WS_TABSTOP
  197. CONTROL "", IDD_WINDOW_POSYSCROLL, UPDOWN_CLASS,
  198. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  199. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  200. CONTROL "Let system &position window", IDD_AUTO_POSITION, "Button",
  201. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP, 122, 142, 100, 10
  202. END
  203. //
  204. // This is the template for the screen colors dialog
  205. //
  206. DID_COLOR DIALOG 0, 0, 233, 226
  207. CAPTION " Colors "
  208. STYLE WS_VISIBLE | WS_CAPTION | WS_CHILD | DS_MODALFRAME
  209. FONT 8,"MS Shell Dlg"
  210. BEGIN
  211. AUTORADIOBUTTON "Screen &Text", IDD_COLOR_SCREEN_TEXT, 10, 10, 84, 12,
  212. WS_TABSTOP|WS_GROUP
  213. AUTORADIOBUTTON "Screen &Background", IDD_COLOR_SCREEN_BKGND, 10, 22, 84, 12,
  214. AUTORADIOBUTTON "&Popup Text", IDD_COLOR_POPUP_TEXT, 10, 34, 84, 12,
  215. AUTORADIOBUTTON "Pop&up Background", IDD_COLOR_POPUP_BKGND, 10, 46, 84, 12,
  216. CONTROL "", IDD_COLOR_1, "cpColor",
  217. WS_BORDER | WS_CHILD | WS_GROUP | WS_TABSTOP,
  218. 10, 85, 13, 13
  219. CONTROL "", IDD_COLOR_2, "cpColor", WS_BORDER | WS_CHILD,
  220. 23, 85, 13, 13
  221. CONTROL "", IDD_COLOR_3, "cpColor", WS_BORDER | WS_CHILD,
  222. 36, 85, 13, 13
  223. CONTROL "", IDD_COLOR_4, "cpColor", WS_BORDER | WS_CHILD,
  224. 49, 85, 13, 13
  225. CONTROL "", IDD_COLOR_5, "cpColor", WS_BORDER | WS_CHILD,
  226. 62, 85, 13, 13
  227. CONTROL "", IDD_COLOR_6, "cpColor", WS_BORDER | WS_CHILD,
  228. 75, 85, 13, 13
  229. CONTROL "", IDD_COLOR_7, "cpColor", WS_BORDER | WS_CHILD,
  230. 88, 85, 13, 13
  231. CONTROL "", IDD_COLOR_8, "cpColor", WS_BORDER | WS_CHILD,
  232. 101, 85, 13, 13
  233. CONTROL "", IDD_COLOR_9, "cpColor", WS_BORDER | WS_CHILD,
  234. 114, 85, 13, 13
  235. CONTROL "", IDD_COLOR_10, "cpColor", WS_BORDER | WS_CHILD,
  236. 127, 85, 13, 13
  237. CONTROL "", IDD_COLOR_11, "cpColor", WS_BORDER | WS_CHILD,
  238. 140, 85, 13, 13
  239. CONTROL "", IDD_COLOR_12, "cpColor", WS_BORDER | WS_CHILD,
  240. 153, 85, 13, 13
  241. CONTROL "", IDD_COLOR_13, "cpColor", WS_BORDER | WS_CHILD,
  242. 166, 85, 13, 13
  243. CONTROL "", IDD_COLOR_14, "cpColor", WS_BORDER | WS_CHILD,
  244. 179, 85, 13, 13
  245. CONTROL "", IDD_COLOR_15, "cpColor", WS_BORDER | WS_CHILD,
  246. 192, 85, 13, 13
  247. CONTROL "", IDD_COLOR_16, "cpColor", WS_BORDER | WS_CHILD,
  248. 205, 85, 13, 13
  249. GROUPBOX "Selected Screen Colors", -1, 10, 119, 213, 46
  250. CONTROL "", IDD_COLOR_SCREEN_COLORS, "WOAFontPreview",
  251. WS_BORDER | WS_GROUP | WS_CHILD, 15, 129, 204, 31
  252. GROUPBOX "Selected Popup Colors", -1, 10, 169, 213, 46
  253. CONTROL "", IDD_COLOR_POPUP_COLORS, "WOAFontPreview",
  254. WS_BORDER | WS_GROUP | WS_CHILD, 15, 179, 204, 31
  255. GROUPBOX "Selected Color Values", -1, 120, 9, 94, 56
  256. LTEXT "&Red:", -1, 124, 23, 54, 9
  257. EDITTEXT IDD_COLOR_RED, 167, 21, 30, 12, WS_TABSTOP | WS_GROUP |
  258. ES_AUTOHSCROLL
  259. CONTROL "", IDD_COLOR_REDSCROLL, UPDOWN_CLASS,
  260. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  261. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  262. LTEXT "&Green:", -1, 124, 37, 54, 9
  263. EDITTEXT IDD_COLOR_GREEN, 167, 35, 30, 12, WS_GROUP | WS_TABSTOP |
  264. ES_AUTOHSCROLL
  265. CONTROL "", IDD_COLOR_GREENSCROLL, UPDOWN_CLASS,
  266. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  267. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  268. LTEXT "B&lue:", -1, 124, 51, 54, 9
  269. EDITTEXT IDD_COLOR_BLUE, 167, 49, 30, 12, WS_GROUP | WS_TABSTOP |
  270. ES_AUTOHSCROLL
  271. CONTROL "", IDD_COLOR_BLUESCROLL, UPDOWN_CLASS,
  272. UDS_AUTOBUDDY | UDS_SETBUDDYINT | UDS_ALIGNRIGHT |
  273. UDS_ARROWKEYS | UDS_NOTHOUSANDS, 0, 0, 0, 0
  274. END
  275. //
  276. // This is the template for the save or apply dialog
  277. //
  278. DID_SAVE_QUERY DIALOG 29, 47, 200, 70
  279. STYLE WS_VISIBLE | WS_CAPTION | WS_POPUP | WS_SYSMENU | DS_MODALFRAME | DS_3DLOOK | DS_SETFONT
  280. CAPTION "Apply Properties"
  281. FONT 8,"MS Shell Dlg"
  282. BEGIN
  283. AUTORADIOBUTTON "&Apply properties to current window only",
  284. IDD_APPLY, 14, 14, 180, 10, WS_TABSTOP | WS_GROUP
  285. AUTORADIOBUTTON "&Save properties for future windows with same title",
  286. IDD_SAVE, 14, 28, 180, 10
  287. DEFPUSHBUTTON "OK", IDOK, 40, 48, 50, 14, WS_TABSTOP | WS_GROUP
  288. PUSHBUTTON "Cancel", IDCANCEL, 110, 48, 50, 14, WS_TABSTOP | WS_GROUP
  289. END
  290. //
  291. // This is the template for the save or apply dialog when started from a link
  292. //
  293. DID_SAVE_QUERY_LINK DIALOG 29, 47, 200, 70
  294. STYLE WS_VISIBLE | WS_CAPTION | WS_POPUP | WS_SYSMENU | DS_MODALFRAME | DS_3DLOOK | DS_SETFONT
  295. CAPTION "Apply Properties To Shortcut"
  296. FONT 8,"MS Shell Dlg"
  297. BEGIN
  298. AUTORADIOBUTTON "&Apply properties to current window only",
  299. IDD_APPLY, 14, 14, 180, 10, WS_TABSTOP | WS_GROUP
  300. AUTORADIOBUTTON "Modify &shortcut that started this window",
  301. IDD_SAVE, 14, 28, 180, 10
  302. DEFPUSHBUTTON "OK", IDOK, 40, 48, 50, 14, WS_TABSTOP | WS_GROUP
  303. PUSHBUTTON "Cancel", IDCANCEL, 110, 48, 50, 14, WS_TABSTOP | WS_GROUP
  304. END
  305. //
  306. // Strings
  307. //
  308. STRINGTABLE PRELOAD
  309. BEGIN
  310. IDS_NAME, "Console"
  311. IDS_INFO, "Configures console properties."
  312. IDS_TITLE, "Console Windows"
  313. IDS_RASTERFONT, "Raster Fonts"
  314. IDS_FONTSIZE, "Point size should be between %d and %d"
  315. IDS_SELECTEDFONT, "Selected Font : "
  316. IDS_LINKERRCAP, "Error Updating Shortcut"
  317. IDS_LINKERROR, "Unable to modify the shortcut:\n%s.\nCheck to make sure it has not been deleted or renamed."
  318. IDS_WARNING "WARNING: Screen buffer size will require %d MB of memory per window"
  319. END
  320. //
  321. // Version resource information
  322. //
  323. #define VER_FILETYPE VFT_DLL
  324. #define VER_FILESUBTYPE VFT2_UNKNOWN
  325. #define VER_FILEDESCRIPTION_STR "Control Panel Console Applet"
  326. #define VER_INTERNALNAME_STR "Console\0"
  327. #define VER_ORIGINALFILENAME_STR "CONSOLE.DLL"
  328. #include "common.ver"