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.

91 lines
3.9 KiB

  1. Mac-specific changes to rcpp
  2. ============================
  3. /mac
  4. Preprocess resource script for Macintosh compatibility
  5. Causes rcpp to translate \n as 0x0D and \r as 0x0A, which are the Macintosh
  6. conventions.
  7. The preprocessor flag _MAC is automatically defined by rc when it is executing
  8. rcpp on a Macintosh-targetted resource script.
  9. Mac-specific changes to rc
  10. ==========================
  11. /m
  12. Generate Macintosh-compatible resources
  13. Causes rc to generate a binary image of a Macintosh resource fork instead of
  14. a Win32 resource file. Some resources are converted into their corresponding
  15. Macintosh resource formats instead of being written using their Win32 formats:
  16. group icons => ICN#, icl4/8, ics4/8, icm4/8
  17. group cursors => CURS
  18. string tables => STR#
  19. Other standard resources are given the following Macintosh resource types:
  20. bitmap => WBMP
  21. menu => WMNU
  22. dialog => WDLG
  23. accelerator => WACC
  24. rcdata => HEXA
  25. /brNNNN
  26. /br:NNNN
  27. /br NNNN
  28. Set base resource ID for named resources
  29. The Windows resource format supports resources that have a name but not an
  30. ID. Macintosh resources always have an ID and may optionally have a name.
  31. rc therefore picks an arbitrary ID when it encounters a resource that has
  32. a name but not an ID. By default, the first resource ID used is 128, and
  33. subsequent resources get successively greater resource IDs. /br is used
  34. to change the base resource ID. This may be useful if you're building a
  35. resource file that will be released as part of a library, and you wish to
  36. have your resources numbered in an unused part of the 128..32K space.
  37. The value is assumed to be decimal and must be from 1 to 32767.
  38. New errors:
  39. RC1209: invalid option; missing resource base number after /br
  40. The /br option requires an integer argument to follow it.
  41. RC1210: resource base number must be from 1 to 32767
  42. The base resource number given to the /br option must fit into a
  43. positive 16-bit integer.
  44. New warnings:
  45. RC4506: scaling cursor %3 down to 16 by 16
  46. RC only supports creating Macintosh cursors that are 16x16 and monochrome.
  47. A Windows cursor whose dimensions are a multiple of 16x16 will be scaled
  48. down to 16x16, losing data in the process.
  49. RC4507: Macintosh cursor %3 must be 16 by 16 and monochrome; ignored
  50. No Windows cursor was found whose dimensions were a multiple of 16x16 and
  51. that was monochrome.
  52. RC4508: Ignoring icon %3 with invalid Macintosh size or color
  53. RC supports creating mini, small, and standard Macintosh icons. These icons
  54. have dimensions of 16x12, 16x16, and 32x32, respectively, and may have bit
  55. depths of 1, 4, or 8 bits. This warning is generated if no icon matching
  56. these requirements was found in an icon file.
  57. RC4509: Resource types '%3' and '%4' were both mapped to '%5'
  58. A Windows resource type other than one of the standard types will be converted
  59. into a Macintosh resource type by using the first four characters of the
  60. Windows type name. This warning is generated if different Windows resource
  61. types are identical in their first four characters, causing them to be mapped
  62. to the same Macintosh resource type.
  63. The default extension for the output file is .rsc instead of .res when building
  64. a Mac resource file, to match the default extension used by mrc.
  65. The lexical analyzer converts \n to 0x0D and \r to 0x0A, which are the
  66. Macintosh conventions.
  67. The default styles for all button controls do not include WS_TABSTOP, unlike Win32.
  68. If the input codepage is Windows Latin 1, Greek, Cyrillic, Turkish, or Eastern
  69. European, the output text is translated into the corresponding Mac codepage before
  70. being written to the destination resource file. The translation performed by Win32
  71. is *not* the same as the translation that was performed by the WLM 1.0 rc.exe; Win32
  72. translates some characters differently and replaces characters that have no
  73. matches with question marks instead the non-breaking space that was used by the
  74. WLM 1.0 rc.exe.