home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / complexscript / cstext.rc < prev    next >
Text File  |  1997-08-18  |  7KB  |  217 lines

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include "resource.h"
  4.  
  5. #define APSTUDIO_READONLY_SYMBOLS
  6. /////////////////////////////////////////////////////////////////////////////
  7. //
  8. // Generated from the TEXTINCLUDE 2 resource.
  9. //
  10. #include "afxres.h"
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. #undef APSTUDIO_READONLY_SYMBOLS
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // English (U.S.) resources
  17.  
  18. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  19. #ifdef _WIN32
  20. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  21. #pragma code_page(1252)
  22. #endif //_WIN32
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. //
  26. // Dialog
  27. //
  28.  
  29. IDD_CSSAMPLE DIALOGEX 0, 0, 306, 138
  30. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  31. CAPTION "Sample Text Processing"
  32. FONT 8, "MS Sans Serif"
  33. BEGIN
  34.     EDITTEXT        ID_EDITCONTROL,7,50,286,46,ES_MULTILINE | ES_AUTOHSCROLL
  35.     PUSHBUTTON      "Clos&e",IDE_CLOSE,210,105,50,17
  36.     PUSHBUTTON      "&Clear Text",IDE_CLEAR,50,106,49,18,0,WS_EX_RTLREADING
  37.     PUSHBUTTON      "Edit Control &Font",IDE_EDIT_FONT,124,105,62,19
  38.     CTEXT           "Right click in the edit control to enter Unicode control characters and see other options",
  39.                     IDC_TYPE,7,7,285,36,SS_CENTERIMAGE | SS_SUNKEN | 
  40.                     WS_BORDER
  41. END
  42.  
  43. IDD_HELP DIALOG DISCARDABLE  0, 0, 213, 284
  44. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  45. CAPTION "Dialog"
  46. FONT 8, "MS Sans Serif"
  47. BEGIN
  48.     DEFPUSHBUTTON   "OK",IDOK,77,250,50,14
  49.     LTEXT           "This sample application shows how to accept keyboard input and display it to the screen, so that complex scripts such as Arabic, Hebrew, and Thai are displayed correctly. These guidelines will help.",
  50.                     IDC_STATIC,7,9,193,34
  51.     LTEXT           "1. Use Unicode as your character encoding if the target platform is Windows NT.",
  52.                     IDC_STATIC,7,44,193,19
  53.     LTEXT           "2. Use an Edit control if possible. ",IDC_STATIC,7,64,
  54.                     175,13
  55.     LTEXT           "3. Use ExtTextOut to display all of the text at once. ",
  56.                     IDC_STATIC,7,96,176,8
  57.     LTEXT           "Displaying text character by character as it is entered will result in improper display of context sensitive text. To see this, invoke this application, switch the keyboard to Thai or Arabic and type. ",
  58.                     IDC_STATIC,15,106,177,34
  59.     LTEXT           "Note that the top row is displayed incorrectly, one character at a time. The second row is correct.",
  60.                     IDC_STATIC,15,142,176,17
  61.     LTEXT           "An edit control handles all complex script processing for you, so it is the easiest way to get user input and display results.",
  62.                     IDC_STATIC,14,75,192,21
  63.     LTEXT           "4. Don't cache character widths; use GetTextExtentExPoint.",
  64.                     IDC_STATIC,7,162,193,11
  65.     LTEXT           "Applications that cache character widths implicitly assume that characters always have the same width. As a result, they may measure line lengths of complex scripts incorrectly, because the width of a character depends on the surrounding characters.",
  66.                     IDC_STATIC,14,175,173,41
  67.     LTEXT           "The text extent functions, such as GetTextExtentPointEx, have been extended to work correctly with complex scripts.",
  68.                     IDC_STATIC,13,222,193,21
  69. END
  70.  
  71. IDD_ABOUT DIALOG DISCARDABLE  0, 0, 186, 55
  72. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  73. CAPTION "Dialog"
  74. FONT 8, "MS Sans Serif"
  75. BEGIN
  76.     DEFPUSHBUTTON   "OK",IDOK,66,30,50,14
  77.     LTEXT           "CSTEXT, a sample application illustrating how to display complex scripts such as Arabic, Hebrew or Thai.",
  78.                     IDC_STATIC,7,7,172,22
  79. END
  80.  
  81.  
  82. /////////////////////////////////////////////////////////////////////////////
  83. //
  84. // DESIGNINFO
  85. //
  86.  
  87. #ifdef APSTUDIO_INVOKED
  88. GUIDELINES DESIGNINFO DISCARDABLE 
  89. BEGIN
  90.     IDD_CSSAMPLE, DIALOG
  91.     BEGIN
  92.         LEFTMARGIN, 7
  93.         RIGHTMARGIN, 299
  94.         TOPMARGIN, 7
  95.         BOTTOMMARGIN, 131
  96.     END
  97.  
  98.     IDD_HELP, DIALOG
  99.     BEGIN
  100.         LEFTMARGIN, 7
  101.         RIGHTMARGIN, 206
  102.         TOPMARGIN, 7
  103.         BOTTOMMARGIN, 277
  104.     END
  105.  
  106.     IDD_ABOUT, DIALOG
  107.     BEGIN
  108.         LEFTMARGIN, 7
  109.         RIGHTMARGIN, 179
  110.         TOPMARGIN, 7
  111.         BOTTOMMARGIN, 48
  112.     END
  113. END
  114. #endif    // APSTUDIO_INVOKED
  115.  
  116.  
  117. #ifdef APSTUDIO_INVOKED
  118. /////////////////////////////////////////////////////////////////////////////
  119. //
  120. // TEXTINCLUDE
  121. //
  122.  
  123. 1 TEXTINCLUDE DISCARDABLE 
  124. BEGIN
  125.     "resource.h\0"
  126. END
  127.  
  128. 2 TEXTINCLUDE DISCARDABLE 
  129. BEGIN
  130.     "#include ""afxres.h""\r\n"
  131.     "\0"
  132. END
  133.  
  134. 3 TEXTINCLUDE DISCARDABLE 
  135. BEGIN
  136.     "\r\n"
  137.     "\0"
  138. END
  139.  
  140. #endif    // APSTUDIO_INVOKED
  141.  
  142.  
  143. /////////////////////////////////////////////////////////////////////////////
  144. //
  145. // Menu
  146. //
  147.  
  148. IDR_MENU1 MENU DISCARDABLE 
  149. BEGIN
  150.     POPUP "&File"
  151.     BEGIN
  152.         MENUITEM "&Exit (Cntrl-X)",             IDM_EXIT
  153.     END
  154.     POPUP "&Edit"
  155.     BEGIN
  156.         MENUITEM "&Clear (Cntl+C)",             IDM_EDIT_CLEAR
  157.         MENUITEM "Use &Edit Control",           IDM_EDITCONTROL
  158.         MENUITEM "Set &Font (Cntl+F)",          IDM_EDIT_SETFONT
  159.         MENUITEM "Set Text Reading &Order (Ctrl+O)", IDM_EDIT_TOGGLEREADING
  160.         MENUITEM "Toggle Text &Alignment (Cntl+A)", IDM_EDIT_TOGGLEALIGN
  161.     END
  162.     POPUP "&Help"
  163.     BEGIN
  164.         MENUITEM "&Help",                       IDM_ABOUT_HELP
  165.         MENUITEM "&About",                      IDM_ABOUT_ABOUT
  166.     END
  167. END
  168.  
  169.  
  170. /////////////////////////////////////////////////////////////////////////////
  171. //
  172. // Accelerator
  173. //
  174.  
  175. IDR_ACCELERATOR1 ACCELERATORS DISCARDABLE 
  176. BEGIN
  177.     "A",            IDM_EDIT_TOGGLEALIGN,   VIRTKEY, CONTROL, NOINVERT
  178.     "F",            IDM_EDIT_SETFONT,       VIRTKEY, CONTROL, NOINVERT
  179.     "O",            IDM_EDIT_TOGGLEREADING, VIRTKEY, CONTROL, NOINVERT
  180.     "^C",           IDM_EDIT_CLEAR,         ASCII,  NOINVERT
  181.     "^X",           IDM_EXIT,               ASCII,  NOINVERT
  182. END
  183.  
  184.  
  185. /////////////////////////////////////////////////////////////////////////////
  186. //
  187. // String Table
  188. //
  189.  
  190. STRINGTABLE DISCARDABLE 
  191. BEGIN
  192.     IDS_CAPTION             "Complex Script Sample"
  193.     IDS_TITLE               "Sample Text Input and Display"
  194. END
  195.  
  196. STRINGTABLE DISCARDABLE 
  197. BEGIN
  198.     IDS_CHOOSEFONT_FAILED   "Unable to change font!"
  199.     IDS_FONTCHANGED         "Font changed to %s"
  200. END
  201.  
  202. #endif    // English (U.S.) resources
  203. /////////////////////////////////////////////////////////////////////////////
  204.  
  205.  
  206.  
  207. #ifndef APSTUDIO_INVOKED
  208. /////////////////////////////////////////////////////////////////////////////
  209. //
  210. // Generated from the TEXTINCLUDE 3 resource.
  211. //
  212.  
  213.  
  214. /////////////////////////////////////////////////////////////////////////////
  215. #endif    // not APSTUDIO_INVOKED
  216.  
  217.