home *** CD-ROM | disk | FTP | other *** search
- /*
- An example how to use Windows-like Resource Scripts for Turbo-Vision :
-
- To Compile use :
- RESC bpmenu.res bpmenu.rc
-
- To Link with other Resources use :
- RESLINK myapp.res bpmenu.res
-
- If you've further question for tools for resource-handling,
- contact me at 10023,265 on CompuServe !
-
- - Mfg Stefc -
-
- P.S. I've use some Resources from BPW extracted via the Resource-Workshop
- in this example and also a resource of my own tool RESMOVER !
-
- P.S.S. The compiler itself is programed with using the YACC/LEX-Tool
- for Turbo-Pascal. Unix-Tools goes TP :-)
- */
-
- 1 MENU LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- POPUP "&File" 1000
- BEGIN
- MENUITEM "&New", 1001
- MENUITEM "&Open...", 1002
- MENUITEM "&Save", 1003
- MENUITEM "Save &as...", 400
- MENUITEM "Save a&ll", 1005
- MENUITEM SEPARATOR
- MENUITEM "&Print", 1006
- MENUITEM "P&rinter setup...", 1007
- MENUITEM SEPARATOR
- MENUITEM "E&xit\tAlt+F4", 1008, kbAltF4
- END
-
- POPUP "&Edit" 2000
- BEGIN
- MENUITEM "&Undo\tAlt+BkSp", 2001, kbAltBkSp
- MENUITEM "&Redo", 2009
- MENUITEM SEPARATOR
- MENUITEM "Cu&t\tShift+Del", 2002, kbShiftDel
- MENUITEM "&Copy\tCtrl+Ins", 2003, kbCtrlIns
- MENUITEM "&Paste\tShift+Ins", 2004, kbShiftIns
- MENUITEM "C&lear\tCtrl+Del", 2005, kbCtrlDel
- END
-
- POPUP "&Search" 3000
- BEGIN
- MENUITEM "&Find...", 3001
- MENUITEM "&Replace...", 3003
- MENUITEM "&Search again\tF3", 3002, kbF3
- MENUITEM SEPARATOR
- MENUITEM "&Go to line number...", 3004
- MENUITEM "Show last &compile error", 3006
- MENUITEM "Find &error...", 3007
- MENUITEM SEPARATOR
- MENUITEM "&Objects", 3008
- MENUITEM "&Units", 3009
- MENUITEM "G&lobals", 3010
- MENUITEM SEPARATOR
- MENUITEM "S&ymbol...", 3011
- END
-
- POPUP "&Run" 6000
- BEGIN
- MENUITEM "&Run\tCtrl+F9", 6000, kbCtrlF9
- MENUITEM "P&arameters...", 6005
- END
-
- POPUP "&Compile"
- BEGIN
- MENUITEM "&Compile\tAlt+F9", 7000, kbAltF9
- MENUITEM "&Make\tF9", 7001, kbF9
- MENUITEM "&Build", 7002
- MENUITEM SEPARATOR
- MENUITEM "&Target...", 7003
- MENUITEM "&Primary file...", 7004
- MENUITEM "C&lear primary file", 7006
- MENUITEM SEPARATOR
- MENUITEM "&Information...", 7005
- END
-
- POPUP "&Tools"
- BEGIN
- MENUITEM "Turbo &Debugger", 8502
- MENUITEM SEPARATOR
- MENUITEM "&Resource Workshop", 8500
- MENUITEM "&WinSight", 8501
- MENUITEM "Turbo &Profiler", 8503
- END
-
- POPUP "&Options"
- BEGIN
- MENUITEM "&Compiler...", 9002
- MENUITEM "&Memory sizes...", 9004
- MENUITEM "&Linker...", 9005
- MENUITEM "&Directories...", 9006
- MENUITEM "Bro&wser...", 9009
- MENUITEM "&Tools...", 9016
- MENUITEM SEPARATOR
- POPUP "&Environment"
- BEGIN
- MENUITEM "&Preferences...", 9007
- MENUITEM "&Editor...", 9008
- MENUITEM "&Mouse...", 9010
- MENUITEM "&Startup...", 9011
- MENUITEM "&Highlight...", 9012
- END
-
- MENUITEM SEPARATOR
- MENUITEM "&Open...", 9014
- MENUITEM "&Save", 9013
- MENUITEM "Save &as...", 9015
- END
-
- POPUP "&Window"
- BEGIN
- MENUITEM "&Cascade\tShift+F5", 4002, kbShiftF5
- MENUITEM "&Tile\tShift+F4", 4001, kbShiftF4
- MENUITEM "Arrange &icons", 4004
- MENUITEM "Close &all", 4003
- END
-
- POPUP "&Help"
- BEGIN
- MENUITEM "&Contents\tShift+F1", 5001, kbShiftF1
- MENUITEM "&Topic search\tCtrl+F1", 5002, kbCtrlF1
- MENUITEM "Using &help", 5004
- MENUITEM SEPARATOR
- MENUITEM "Compiler &directives", 5005
- MENUITEM "Procedures and &Functions", 5007
- MENUITEM "&Reserved words", 5008
- MENUITEM "Standard &units", 5009
- MENUITEM "Turbo &Pascal language", 5010
- MENUITEM "&Error messages", 5013
- MENUITEM SEPARATOR
- MENUITEM "&About...", 5012
- END
-
- END
-
- #define cm_About 101 /* System */
- #define cm_ClearDesk 111
- #define cm_Info 115
- #define cm_Register 116
- #define cm_ShowHistory 121
-
- #define cm_FOpen 103 /* File */
- #define cm_FNew 104
- #define cm_FSave 105
- #define cm_FSaveAs 106
- #define cm_ChangeDir 107
- #define cm_DosShell 108
- #define cm_PackIt 117
- #define cm_Rename 118
-
- #define cm_ScrLines 110 /* Options */
- #define cm_MouseDlg 113
- #define cm_Colors 109
- #define cm_SaveOptions 119
- #define cm_LoadOptions 120
-
- #define cm_MacroStart 122 /* Macro */
- #define cm_MacroEnd 123
- #define cm_MacroPlay 124
-
- #define cmTile 25 /* Window */
- #define cmCascade 26
- #define cmClose 4
- #define cmZoom 5
- #define cmResize 6
- #define cmNext 7
- #define cmPrev 8
- #define cm_WinList 112
-
- #define cm_HelpCrossRef 4000 /* Help */
- #define cm_HelpPrevious 4001
- #define cm_HelpContents 4002
- #define cm_HelpIndex 4003
- #define cm_HelpOnHelp 4004
-
-
- "MyMenu" MENU
- BEGIN
- POPUP "&≡" 10018
- BEGIN
- MENUITEM "&About...", cm_About, kbNoKey, 10015
- MENUITEM "&Clear Desktop", cm_ClearDesk, kbNoKey, 10017
- MENUITEM SEPARATOR
- MENUITEM "&Information", cm_Info, kbNoKey, 10304
- MENUITEM "&Registration", cm_Register, kbNoKey, 10305
- MENUITEM "&History/Fixes", cm_ShowHistory, kbNoKey, 10311
- END
-
- POPUP "&File" 10019
- BEGIN
- MENUITEM "&Open...\tF3", cm_FOpen, kbF3, 10028
- MENUITEM "&New", cm_FNew, kbNoKey, 10029
- MENUITEM "Save &as", cm_FSaveAs, kbNoKey, 10031
- MENUITEM "&Pack It\tAlt-P", cm_PackIt, kbAltP, 10306
- MENUITEM "&R~ename Item\tAlt-R", cm_Rename, kbAltR, 10306
- MENUITEM SEPARATOR
- MENUITEM "&Change Dir", cm_ChangeDir, kbNoKey, 10033
- MENUITEM "&DOS shell", cm_DosShell, kbNoKey, 10036
- MENUITEM "E&xit\tAlt-X", cmQuit, kbAltX, 10037
- END
-
- POPUP "&Edit" 10020
- BEGIN
- MENUITEM "Cu&t\tShift-Del", cmCut, kbShiftDel, 10039
- MENUITEM "&Copy\tCtrl-Ins", cmCopy, kbCtrlIns, 10040
- MENUITEM "&Paste\tShift-Ins", cmPaste, kbShiftIns, 10041
- MENUITEM "C&lear\tCtrl-Del", cmClear, kbCtrlDel, 10044
- END
-
- POPUP "&Options" 10025
- BEGIN
- MENUITEM "&Lines\t25", cm_ScrLines, kbNoKey, 10215
- MENUITEM "&Mouse...", cm_MouseDlg, kbNoKey, 10080
- MENUITEM "&Colors...", cm_Colors, kbNoKey, 10075
- MENUITEM SEPARATOR
- MENUITEM "&Save options...", cm_SaveOptions, kbNoKey, 10076
- MENUITEM "&Retrieve options...", cm_LoadOptions, kbNoKey, 10077
- END
-
- POPUP "&Macros" 10313
- BEGIN
- MENUITEM "&Recording", cm_MacroStart, kbNoKey, 10314
- MENUITEM "&Stop", cm_MacroEnd, kbNoKey, 10315
- MENUITEM "&Play", cm_MacroPlay, kbNoKey, 10316
- END
-
- POPUP "&Window" 10026
- BEGIN
- MENUITEM "&Size/Move\tCtrl-F5", cmResize, kbCtrlF5, 10083
- MENUITEM "&Tile", cmTile, kbNoKey, 10085
- MENUITEM "C&ascade", cmCascade, kbNoKey, 10086
- MENUITEM "&Next\tF6", cmNext, kbF6, 10087
- MENUITEM "&Previous\tShift-Tab", cmPrev, kbShiftF6, 10088
- MENUITEM "&Close\tAlt-F3", cmClose, kbAltF3, 10089
- MENUITEM SEPARATOR
- MENUITEM "&List...\tAlt-0", cm_WinList, kbAlt0, 10095
- END
-
- POPUP "&Help" 10027
- BEGIN
- MENUITEM "&Contents", cm_HelpContents, kbNoKey, 10096
- MENUITEM "&Index\tShift-F1", cm_HelpIndex, kbShiftF1, 10097
- MENUITEM "&Previous Topic\tAlt-F1", cm_HelpPrevious, kbAltF1, 10099
- MENUITEM "&Help on Help", cm_HelponHelp, kbNoKey, 10100
- END
- END
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 528, "Open an empty editor window"
- 529, "Open an existing file or create a new file"
- 530, "Save the file in the active editor window"
- 531, "Save the file in the active window under a new name"
- 532, "Save all modified files"
- 533, "Print the contents of the active editor window"
- 534, "Select and set up a printer"
- 535, "Exit Borland Pascal"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 544, "Undo the previous editor operation"
- 545, "Redo the previously undone editor operation"
- 546, "Remove the selected text and put it in the Clipboard"
- 547, "Copy the selected text to the Clipboard"
- 548, "Insert text from the Clipboard at the cursor position"
- 549, "Delete the selected text"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 560, "Search for text"
- 561, "Search and Replace text"
- 562, "Repeat last Search or Replace"
- 563, "Go to a specific line"
- 564, "Redisplay the last compile error"
- 565, "Search for run-time error location"
- 566, "Opens the Class Browser window"
- 567, "Opens the Units Browser window"
- 568, "Opens the Globals Browser window"
- 569, "Browses symbol at cursor "
- 570, "Rewinds the Browser window"
- 571, "Opens the Class Browser window"
- 572, "Inspect item selected in Browser window"
- 573, "Goto item selected in Browser window"
- 574, "Print Class View"
- 575, "Display references to item selected in Browser window"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 576, "Switch between Navigation modes"
- 580, "Tile windows on the desktop"
- 581, "Cascade windows on the desktop"
- 582, "Close all open windows"
- 583, "Arrange all iconized windows"
- 584, "Repaint the entire desktop"
- 585, "Activate the selected window"
- 586, "Choose an open window to activate"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 592, "Make and run the current program"
- 593, "Set command line parameters to use when running a program"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 608, "Compile the file in the active editor window"
- 609, "Bring program image up-to-date by compiling and linking, as necessary"
- 610, "Completely rebuild program image"
- 611, "Deselect the primary file"
- 612, "Choose a primary file"
- 613, "Display compiler information"
- 614, "Select compilation target platform"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 624, "Set compiler options"
- 625, "Specify stack and heap sizes"
- 626, "Set linker options"
- 627, "Set directory paths used to access program files"
- 628, "Specify environment settings"
- 629, "Save the configuration"
- 630, "Save the configuration under a new name"
- 631, "Load a new configuration"
- 632, "Specify syntax highlighting settings"
- 633, "Specify editor settings"
- 634, "Specify mouse settings"
- 636, "Specify global default settings for the browser"
- 637, "Specify IDE startup options"
- 638, "Set environment, editor, mouse, startup, and desktop preferences"
- END
-
-
- STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
- BEGIN
- 640, "Display contents of online help"
- 641, "Search help index for keyword"
- 642, "Display online help glossary"
- 643, "Display online help about the Help System"
- 644, "Display online help about the compiler directives"
- 646, "Display online help about procedures and functions"
- 647, "Display Turbo Pascal's reserved words"
- 648, "Display online help about standard Turbo Pascal units"
- 649, "Display online help about the Turbo Pascal language"
- 651, "Display version and copyright information"
- 652, "Display online help about the error messages"
- END
-
-
-
-