home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bde / snipit.pak / SNIPIT.RC < prev    next >
Encoding:
Text File  |  1997-07-24  |  9.3 KB  |  172 lines

  1. // BDE - (C) Copyright 1995 by Borland International
  2.  
  3. #include <windows.h>
  4. #include "id_defs.h"
  5.  
  6. 1100 ICON   "snipit.ico"
  7.  
  8. MainMenu MENU 
  9. {
  10.  POPUP "&File"
  11.  {
  12.   MENUITEM "&View Source Code", IDM_VIEW_CODE
  13.   MENUITEM "&Run the Sample", IDM_RUN_CODE
  14.   MENUITEM SEPARATOR
  15.   MENUITEM "E&xit", IDM_EXIT
  16.  }
  17.  
  18.  POPUP "&Edit"
  19.  {
  20.   MENUITEM "&Copy Text", IDM_COPY
  21.  }
  22.  
  23.  POPUP "&Search"
  24.  {
  25.   MENUITEM "&Find      \tF2", IDM_SEARCH_FIRST
  26.   MENUITEM "&Search Again       \tF3", IDM_SEARCH_NEXT
  27.  }
  28.  
  29.  MENUITEM "\a&About", IDM_ABOUT
  30. }
  31.  
  32. MenuAccel ACCELERATORS 
  33. {
  34.  VK_F2, IDM_SEARCH_FIRST, VIRTKEY
  35.  VK_F3, IDM_SEARCH_NEXT, VIRTKEY
  36. }
  37.         
  38. AboutDlg DIALOG 41, 20, 160, 79
  39. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  40. CAPTION "About"
  41. {
  42.  ICON 1100, -1, 15, 15, 16, 16
  43.  CTEXT "SNIPIT Code Viewer", -1, 50, 10, 100, 8
  44.  CTEXT "Borland Database Engine 2.5    Sample Application", -1, 52, 21, 97, 17
  45.  CTEXT "BDE - (C) Copyright 1995 Borland International", -1, 10, 43, 140, 8
  46.  DEFPUSHBUTTON "&OK", IDOK, 55, 61, 50, 14
  47.  CONTROL "", -1, "static", SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 5, 5, 150, 51
  48. }
  49.  
  50. ConnectDlg DIALOG 10, 17, 275, 117
  51. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  52. CAPTION "Connect to Database"
  53. {
  54.  CONTROL "IDL_DRIVERS", IDL_DRIVERS, "LISTBOX", LBS_STANDARD | LBS_NOINTEGRALHEIGHT | WS_GROUP | WS_TABSTOP, 10, 20, 120, 44
  55.  LISTBOX IDL_ALIASES, 135, 20, 130, 44, LBS_STANDARD | LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  56.  EDITTEXT IDE_PASSWORD, 52, 70, 213, 12, ES_AUTOHSCROLL | ES_PASSWORD | WS_BORDER | WS_GROUP | WS_TABSTOP
  57.  DEFPUSHBUTTON "&OK", IDOK, 58, 95, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
  58.  PUSHBUTTON "&Cancel", IDCANCEL, 167, 95, 50, 14
  59.  CTEXT "Select a Driver", -1, 10, 10, 120, 8
  60.  CTEXT "Select the alias to use", -1, 135, 10, 130, 8
  61.  RTEXT "Password:", IDT_PASSWORD_HDR, 10, 72, 40, 8, SS_RIGHT | WS_CHILD | WS_VISIBLE | WS_GROUP
  62.  CONTROL "", -1, "static", SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 5, 5, 265, 82
  63. }
  64.  
  65. GenericBox DIALOG 92, 51, 130, 57
  66. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  67. CAPTION "No header defined!"
  68. {
  69.  EDITTEXT IDE_GENERIC_ENTRY, 10, 10, 110, 12, ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_GROUP | WS_TABSTOP
  70.  DEFPUSHBUTTON "&OK", IDOK, 10, 35, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
  71.  PUSHBUTTON "&Cancel", IDCANCEL, 70, 35, 50, 14
  72.  CONTROL "", -1, "static", SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 5, 5, 120, 22
  73. }
  74.  
  75. MainDlg DIALOG 0, 10, 316, 204
  76. STYLE WS_OVERLAPPED | WS_CAPTION
  77. CAPTION "Prototype for the main window of SnipIt"
  78. {
  79.  DEFPUSHBUTTON "&View", IDB_VIEW_CODE, 6, 22, 50, 12, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
  80.  PUSHBUTTON "&Run", IDB_RUN_CODE, 6, 37, 50, 12
  81.  PUSHBUTTON "&Copy", IDB_COPY, 6, 52, 50, 12
  82.  LISTBOX IDL_SELECT_CODE, 59, 23, 110, 55, LBS_STANDARD | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  83.  EDITTEXT IDE_DESCRIBE_CODE, 172, 23, 137, 45, ES_LEFT | ES_MULTILINE | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_GROUP | WS_TABSTOP
  84.  EDITTEXT IDE_VIEWER_OUTPUT, 3, 96, 310, 105, ES_MULTILINE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_GROUP | WS_TABSTOP
  85.  CTEXT "Sample Code", -1, 60, 14, 110, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
  86.  CTEXT "Description", IDT_HEADER_1, 174, 14, 135, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
  87.  RTEXT "File:", -1, 172, 71, 16, 8
  88.  CTEXT "", IDT_FILE_NAME, 191, 70, 118, 10, SS_CENTER | WS_BORDER | WS_GROUP
  89.  CTEXT "Sample Code Selection", IDT_HEADER_2, 3, 3, 310, 10, SS_CENTER | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_GROUP
  90.  CTEXT "Sample Code Viewer", IDT_OUTPUT_HEADER, 3, 86, 310, 10, SS_CENTER | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_GROUP
  91.  CONTROL "", -1, "static", SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 3, 13, 310, 72
  92. }
  93.  
  94. SearchDlg DIALOG 48, 32, 180, 69
  95. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  96. CAPTION "Search Text"
  97. {
  98.  EDITTEXT IDE_SEARCH_TEXT, 47, 10, 123, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
  99.  CHECKBOX "Case &Sensitive", IDCHK_CASE_SENS, 10, 27, 60, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP
  100.  DEFPUSHBUTTON "&OK", IDOK, 26, 50, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
  101.  PUSHBUTTON "&Cancel", IDCANCEL, 104, 50, 50, 14
  102.  RTEXT "Fi&nd What:", -1, 10, 12, 35, 8
  103.  CONTROL "", -1, "static", SS_BLACKRECT | WS_CHILD | WS_VISIBLE, 5, 5, 170, 39
  104. }
  105.  
  106. STRINGTABLE
  107. {
  108.  IDS_INIT_ENG, "Initialize IDAPI and connect to the standard database."
  109.  IDS_CR8PXTBL, "Create a Paradox table, insert 10 records, then delete the table."
  110.  IDS_CR8DBTBL, "Create a dBASE table, insert 10 records, then delete the table."
  111.  IDS_DB_IO, "Open the standard database five times. The standard database is used to access dBASE, Paradox, and Text tables"
  112.  IDS_NAVIGATE, "Record navigation - getting the first, next, and previous records from the 'Customer' table."
  113.  IDS_ERR_VAL, "Getting information regarding IDAPI errors."
  114.  IDS_INDEX_PDOX, "Create and manipulate indexes on a Paradox table."
  115.  IDS_SIMPLE_BLOB_IO, "Inserting, modifying, reading, and writing simple BLOBs."
  116.  IDS_TBLLOCK, "How to use table locking."
  117.  IDS_RECLOCK, "How to use record locking."
  118.  IDS_RDOLOCK, "Making a directory read only. (Paradox only)"
  119.  IDS_QBE, "Doing a simple QBE query."
  120.  IDS_QBE2, "Joining a dBASE and Paradox table using QBE."
  121.  IDS_BATCH, "Copying records from a Paradox table to a dBASE table using the DbiBatchMove function."
  122.  IDS_BLOB_IO, "Inserting, modifying, reading, and writing BLOBs larger than 64K."
  123.  IDS_INDEX_DBASE, "Create and manipulate indexes on a dBASE table."
  124.  IDS_RESTRUCTURE, "Adding, deleting, and modifying the fields of a table. (Local tables only)"
  125.  IDS_SORT, "Changing the order of records within a table. (Local tables only)"
  126.  IDS_FLD_MAP, "Limiting the available fields of a table using field mapping."
  127.  IDS_SEARCH, "Searching a cursor for a specific key value."
  128.  IDS_BOOKMARK, "Storing the current location within a cursor and returning to that location using bookmarks."
  129.  IDS_RANGE, "Limiting the records which are available in the table using a range."
  130.  IDS_BLOCK, "Using DbiReadBlock() and DbiWriteBlock() to move blocks of records."
  131.  IDS_FILTER, "Limiting the records which are available in the table using a filter."
  132.  IDS_LNKCRSR, "Limiting the available records in one table to a value specific to the current record of a second table using linked cursors."
  133.  IDS_PASSWORD, "Adding a password to a table (Paradox-specific)."
  134.  IDS_SESSION_IO, "Starting and using multiple sessions."
  135.  IDS_SYSINFO, "Getting system information."
  136.  IDS_ALIASES, "Listing the available aliases in the IDAPI.CFG file."
  137.  IDS_TBLINFO, "Getting information about a table."
  138.  IDS_CONFIG, "Getting system configuration information stored in the IDAPI.CFG file."
  139.  IDS_LOCALSQL, "Using local SQL on a dBASE table."
  140.  IDS_LOCALSQLJOIN, "Joining a dBASE and a Paradox table using SQL."
  141.  IDS_SOFTDEL, "Specifying if deleted records are actually deleted from the table using the soft delete option. (dBASE only)"
  142.  IDS_DRVCAPS, "Determining the capabalities of IDAPI drivers."
  143.  IDS_SQLTRAN, "Create and use transactions on SQL tables. You must have write access to the server for this example to work. (Servers only)"
  144.  IDS_REFINTEG, "Establishing data relationships between tables using referential integrity. (Paradox only)"
  145.  IDS_VALCHECK, "Limit the valid values for a given field using validity checks. (Paradox only)"
  146.  IDS_SECDESC, "Retrieving the security descriptors of a table and changing them. (Paradox only)"
  147.  IDS_OPTPARAM, "Using optional parameters while creating local tables. Optional parameters are used to set the level (3, 4, or 5) of local tables. (Local tables only)"
  148.  IDS_FORMAT, "Changing the format of Date and Time fields."
  149.  IDS_TBLOPEN, "Opening a table."
  150.  IDS_RECUPDAT, "Adding, deleting, and modifying a record."
  151.  IDS_TEST, "Framework to use when writing or testing code."
  152.  IDS_TBLLIST, "Getting a list of the available tables and their family members (such as indexes)."
  153.  IDS_INDEX_EXPR, "Linking dBASE tables using an expression indexes. (dBASE only)"
  154.  IDS_LIVESQL, "Getting and using an updatable answer set (live answer set) using SQL (DynaSet)."
  155.  IDS_TEXTEXP, "Exporting data from a Paradox table to a text table."
  156.  IDS_TEXTIMP, "Importing data from a text table to a dBASE table."
  157.  IDS_CR8TXTBL, "Create a text table, insert 10 records, then delete it."
  158.  IDS_SQLBIND, "Using variables within queries. You must have write access to the server for this example to work."
  159.  IDS_INMEMTBL, "Create an in-memory table, insert 10 records, then delete the table."
  160.  IDS_CALLBACK, "Create a restructure callback function which gets called from within the DbiDoRestructure function. (Local tables only)"
  161.  IDS_LANGDRV, "Using non-US language drivers."
  162.  IDS_UPSIZE, "Copying a local table to a server. You must have write access to the server for this example to work."
  163.  IDS_FILTCOMP, "Limiting the records which are available in the table using a comparison filter."
  164.  IDS_FILTCONT, "Limiting the records which are available in the table using a continue filter."
  165.  IDS_ADDALIAS, "Adding an Alias."
  166.  IDS_STORPROC, "Using Stored Procedures."
  167.  IDS_UPDTCRNT, "Updating the current record of a cursor."
  168.  IDS_KEYUPDT, "Speeding up updates by using only part of the record in the selection criterion."
  169.  IDS_INPUTREQ, "How to access a table which is missing an Index File or has an invalid index"
  170.  IDS_LOGIN, "Accessing encrypted dBASE tables"
  171. }
  172.