home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
bc45
/
expert.pak
/
TAPPLICA.OWL
< prev
next >
Wrap
Text File
|
1997-07-23
|
16KB
|
565 lines
'////////////////////////////////////////////////////////////////////////////////////
' Expert PROJECT
' Expert - (C) Copyright 1993 by Borland International, Inc. All Rights Reserved.
'
' SUBSYSTEM: OWL code template at AppGen time
' FILE: TApplica.OWL
'
'
' OVERVIEW
' ========
'////////////////////////////////////////////////////////////////////////////////////
'
' RC file.
<<[RC]TApplication [[TApplication]]
##{rc.owl}
>>[RC]TApplication [[TApplication]]
<<[H]TApplication [[TApplication]]
##--BEGIN-- @OPT_APPL_DOCVIEW
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG))
##: {hsdidocv.owl}
##*
##@QUERY_APPL_MODEL == VALUE_MDI
##: {hmdidocv.owl}
##*
##--END-- @OPT_APPL_DOCVIEW
##--BEGIN-- !@OPT_APPL_DOCVIEW
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG))
##: {hsdi.owl}
##*
##@QUERY_APPL_MODEL == VALUE_MDI
##: {hmdi.owl}
##*
##--END-- !@OPT_APPL_DOCVIEW
>>[H]TApplication
'
' TApplication .CPP file.
'
<<[CPP]TApplication [[TApplication]]
##--BEGIN-- @OPT_APPL_DOCVIEW
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG))
##: {csdidocv.owl}
##*
##@QUERY_APPL_MODEL == VALUE_MDI
##: {cmdidocv.owl}
##*
##--END-- @OPT_APPL_DOCVIEW
##--BEGIN-- !@OPT_APPL_DOCVIEW
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG))
##: {csdi.owl}
##*
##@QUERY_APPL_MODEL == VALUE_MDI
##: {cmdi.owl}
##*
##--END-- !@OPT_APPL_DOCVIEW
>>[CPP]TApplication
'
' Resource header file. (.RH)
'
<<[RH]TApplication [[TApplication]]
##QUERY_FILENAME_CPP [[Filename]] 2
//#if !defined(__[[Filename]]_rh) // Sentry use file only if it's not already included.
//#define __[[Filename]]_rh
##@QUERY_PRJ_NAME [[Project]]
/* Project [[Project]]
##@QUERY_PRJ_COMPANY [[CompanyName]] 2
##@QUERY_PRJ_COPYRIGHT [[Copyright]] 2
##\\Copyright Copyright 2
[[CompanyName]]
[[Copyright]]
##@QUERY_TARGET_NAME [[Target]]
SUBSYSTEM: [[Target]] Application
##QUERY_FILE_H [[Filename]]
FILE: [[Filename]]
##@QUERY_PRJ_USER [[Author]]
AUTHOR: [[Author]]
OVERVIEW
========
##QUERY_FILENAME_CPP [[Filename]]
Constant definitions for all resources defined in [[Filename]].rc.
*/
//
// IDHELP BorButton for BWCC dialogs.
//
#define IDHELP 998 // Id of help button
//
// Application specific definitions:
//
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG))
#define IDI_SDIAPPLICATION 1001 // Application icon
##@QUERY_APPL_MODEL == VALUE_MDI
#define IDI_MDIAPPLICATION 1001 // Application icon
##@QUERY_APPL_MODEL == VALUE_MDI
#define IDI_DOC 1002 // MDI child window icon
##@QUERY_APPL_MODEL == VALUE_MDI
#define MDI_MENU 100 // Menu resource ID and Accelerator IDs
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG))
#define SDI_MENU 100 // Menu resource ID and Accelerator IDs
##--BEGIN-- @OPT_APPL_DOCVIEW
#define IDM_DOCMANAGERFILE 32401 // Menu for DocManager merging.
#define IDM_EDITVIEW 32581 // Menu for TEditView merging.
#define IDM_LISTVIEW 32582 // Menu for TListView merging.
##--END-- @OPT_APPL_DOCVIEW
##--BEGIN-- @QUERY_APPL_OLE != VALUE_NOOLE
//
// OleView merged menus (include\owl\oleview.rh)
//
#define IDM_OLEPOPUP 32405
#define IDM_OLEVIEW 32406
#define IDM_OLEVIEWEMBED 32407
##--END-- @QUERY_APPL_OLE != VALUE_NOOLE
//
// CM_FILEnnnn commands (include\owl\editfile.rh except for CM_FILEPRINTPREVIEW)
//
##((@QUERY_APPL_MODEL == VALUE_SDI) || (@QUERY_APPL_MODEL == VALUE_DIALOG)) 2
#define CM_FILENEW 24331 // SDI New
#define CM_FILEOPEN 24332 // SDI Open
##@QUERY_APPL_MODEL == VALUE_MDI 2
#define CM_MDIFILENEW 24331
#define CM_MDIFILEOPEN 24332
#define CM_FILECLOSE 24339
#define CM_FILESAVE 24333
#define CM_FILESAVEAS 24334
##@OPT_APPL_DOCVIEW 2
#define CM_FILEREVERT 24335
#define CM_VIEWCREATE 24341
##@OPT_APPL_PRINTING 3
#define CM_FILEPRINT 24337
#define CM_FILEPRINTERSETUP 24338
#define CM_FILEPRINTPREVIEW 24340
//
// Window commands (include\owl\window.rh)
//
#define CM_EXIT 24310
//
// CM_EDITnnnn commands (include\owl\window.rh)
//
#define CM_EDITUNDO 24321
#define CM_EDITCUT 24322
#define CM_EDITCOPY 24323
#define CM_EDITPASTE 24324
#define CM_EDITDELETE 24325
#define CM_EDITCLEAR 24326
#define CM_EDITADD 24327
#define CM_EDITEDIT 24328
##--BEGIN-- @QUERY_APPL_OLE != VALUE_NOOLE
#define CM_EDITPASTESPECIAL 24311
#define CM_EDITPASTELINK 24312
#define CM_EDITINSERTOBJECT 24313
#define CM_EDITLINKS 24314
#define CM_EDITOBJECT 24370
#define CM_EDITFIRSTVERB 24371 // 20 verbs at most
#define CM_EDITLASTVERB 24390
#define CM_EDITCONVERT 24391
#define CM_EDITSHOWOBJECTS 24392
##--END-- @QUERY_APPL_OLE != VALUE_NOOLE
//
// Search menu commands (include\owl\editsear.rh)
//
#define CM_EDITFIND 24351
#define CM_EDITREPLACE 24352
#define CM_EDITFINDNEXT 24353
##--BEGIN-- @QUERY_APPL_MODEL == VALUE_MDI
//
// Windows menu commands (include\owl\mdi.rh)
//
#define CM_CASCADECHILDREN 24361
#define CM_TILECHILDREN 24362
#define CM_TILECHILDRENHORIZ 24363
#define CM_ARRANGEICONS 24364
#define CM_CLOSECHILDREN 24365
#define CM_CREATECHILD 24366
##--END-- @QUERY_APPL_MODEL == VALUE_MDI
//
// Help menu commands.
//
##--BEGIN-- @OPT_APPL_HELP
#define CM_HELPCONTENTS 2001
#define CM_HELPUSING 2002
##--END-- @OPT_APPL_HELP
#define CM_HELPABOUT 2009
##--BEGIN-- @OPT_APPL_HELP
// Context sensitive help cursor.
#define IDC_HELPCURSOR 24000
##--END-- @OPT_APPL_HELP
##--BEGIN-- ((@QUERY_APPL_MODEL != VALUE_DIALOG) || ((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU))
//
// About Dialogs
//
## :<<TDialog QUERY_DLOG [[DLogRsrc]]
#define [[DLogRsrc]] 22000
#define IDC_VERSION 22001
#define IDC_COPYRIGHT 22002
#define IDC_DEBUG 22003
##--END-- ((@QUERY_APPL_MODEL != VALUE_DIALOG) || ((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU))
##--BEGIN-- @QUERY_APPL_MODEL == VALUE_DIALOG
//
// Client Dialog
//
##@QUERY_APPL_DLGCLIENT [[ClientClass]]
##<<*ClientClass QUERY_DLOG [[DLogRsrc]]
#define [[DLogRsrc]] 2000
##--END-- @QUERY_APPL_MODEL == VALUE_DIALOG
//
// OWL defined strings
//
// Statusbar
#define IDS_MODES 32530
#define IDS_MODESOFF 32531
// EditFile
##!@OPT_APPL_DOCVIEW
#define IDS_UNTITLED 32550
#define IDS_UNABLEREAD 32551
#define IDS_UNABLEWRITE 32552
#define IDS_FILECHANGED 32553
#define IDS_FILEFILTER 32554
// EditSearch
#define IDS_CANNOTFIND 32540
//
// General & application exception messages (include\owl\except.rh)
//
#define IDS_UNKNOWNEXCEPTION 32767
#define IDS_OWLEXCEPTION 32766
#define IDS_OKTORESUME 32765
#define IDS_UNHANDLEDXMSG 32764
#define IDS_UNKNOWNERROR 32763
#define IDS_NOAPP 32762
#define IDS_OUTOFMEMORY 32761
#define IDS_INVALIDMODULE 32760
#define IDS_INVALIDMAINWINDOW 32759
#define IDS_VBXLIBRARYFAIL 32758
//
// Owl 1 compatibility messages
//
#define IDS_INVALIDWINDOW 32756
#define IDS_INVALIDCHILDWINDOW 32755
#define IDS_INVALIDCLIENTWINDOW 32754
//
// TXWindow messages
//
#define IDS_CLASSREGISTERFAIL 32749
#define IDS_CHILDREGISTERFAIL 32748
#define IDS_WINDOWCREATEFAIL 32747
#define IDS_WINDOWEXECUTEFAIL 32746
#define IDS_CHILDCREATEFAIL 32745
#define IDS_MENUFAILURE 32744
#define IDS_VALIDATORSYNTAX 32743
#define IDS_PRINTERERROR 32742
#define IDS_LAYOUTINCOMPLETE 32741
#define IDS_LAYOUTBADRELWIN 32740
//
// TXGdi messages
//
#define IDS_GDIFAILURE 32739
#define IDS_GDIALLOCFAIL 32738
#define IDS_GDICREATEFAIL 32737
#define IDS_GDIRESLOADFAIL 32736
#define IDS_GDIFILEREADFAIL 32735
#define IDS_GDIDELETEFAIL 32734
#define IDS_GDIDESTROYFAIL 32733
#define IDS_INVALIDDIBHANDLE 32732
##--BEGIN-- @OPT_APPL_DOCVIEW
// ListView (include\owl\listview.rh)
#define IDS_LISTNUM 32584
// DocView (include\owl\docview.rh)
#define IDS_DOCMANAGERFILE 32500
#define IDS_DOCLIST 32501
#define IDS_VIEWLIST 32502
#define IDS_UNTITLED 32503
#define IDS_UNABLEOPEN 32504
#define IDS_UNABLECLOSE 32505
#define IDS_READERROR 32506
#define IDS_WRITEERROR 32507
#define IDS_DOCCHANGED 32508
#define IDS_NOTCHANGED 32509
#define IDS_NODOCMANAGER 32510
#define IDS_NOMEMORYFORVIEW 32511
#define IDS_DUPLICATEDOC 32512
##--BEGIN-- @QUERY_APPL_OLE != VALUE_NOOLE
#define IDS_EDITOBJECT 32600
#define IDS_EDITCONVERT 32601
#define IDS_CLOSESERVER 32602
#define IDS_EXITSERVER 32603
// Text for clipboard format names
#define IDS_CFTEXT 32610
#define IDS_CFBITMAP 32611
#define IDS_CFMETAFILE 32612
#define IDS_CFSYLK 32613
#define IDS_CFDIF 32614
#define IDS_CFTIFF 32615
#define IDS_CFOEMTEXT 32616
#define IDS_CFDIB 32617
#define IDS_CFPALETTE 32618
#define IDS_CFPENDATA 32619
#define IDS_CFRIFF 32620
#define IDS_CFWAVE 32621
#define IDS_CFUNICODETEXT 32622
#define IDS_CFENHMETAFILE 32623
#define IDS_IN 32700
##--END-- @QUERY_APPL_OLE != VALUE_NOOLE
##--END-- @OPT_APPL_DOCVIEW
##--BEGIN-- @OPT_APPL_PRINTING
//
// Printing error message string resource IDs (include\owl\printer.rh)
//
#define IDS_PRNON 32590
#define IDS_PRNERRORTEMPLATE 32591
#define IDS_PRNOUTOFMEMORY 32592
#define IDS_PRNOUTOFDISK 32593
#define IDS_PRNCANCEL 32594
#define IDS_PRNMGRABORT 32595
#define IDS_PRNGENERROR 32596
#define IDS_PRNERRORCAPTION 32597
//
// Printer abort dialog & control IDs
//
#define IDD_ABORTDIALOG 32599 // keep different than any string IDs
#define ID_TITLE 101 // Document title text control
#define ID_DEVICE 102 // Device & optional port text control
#define ID_PORT 103 // Old port text control, unused
#define ID_PAGE 104 // Page # text control
//
// Print Preview
//
#define APX_PPR_PREVIOUS 24500
#define APX_PPR_NEXT 24501
#define APX_PPR_ONEUP 24502
#define APX_PPR_TWOUP 24503
#define APX_PPR_CURRPAGE 24504
#define APX_PPR_DONE 24505
##--END-- @OPT_APPL_PRINTING
// TInputDialog DIALOG resource (include\owl\inputdia.rh)
#define IDD_INPUTDIALOG 32514
#define ID_PROMPT 4091
#define ID_INPUT 4090
// TSlider bitmaps (horizontal and vertical) (include\owl\slider.rh)
#define IDB_HSLIDERTHUMB 32000
#define IDB_VSLIDERTHUMB 32001
// Validation messages (include\owl\validate.rh)
#define IDS_VALPXPCONFORM 32520
#define IDS_VALINVALIDCHAR 32521
#define IDS_VALNOTINRANGE 32522
#define IDS_VALNOTINLIST 32523
##QUERY_FILENAME_CPP [[Filename]]
//#endif // __[[Filename]]_rh sentry.
>>[RH]TApplication [[TApplication]]
'
' DEF file
'
<<[DEF]TApplication [[TApplication]]
;------------------------------------------------
##@QUERY_PRJ_NAME [[Project]]
; Project [[Project]]
##@QUERY_PRJ_COMPANY [[CompanyName]] 2
##@QUERY_PRJ_COPYRIGHT [[Copyright]] 2
##\\Copyright Copyright 2
; [[CompanyName]]
; [[Copyright]]
;
##@QUERY_TARGET_NAME [[Target]]
; SUBSYSTEM: [[Target]] Module Defintion File
##QUERY_FILENAME_CPP [[Filename]]
; FILE: [[Filename]].def
##@QUERY_PRJ_USER [[Author]]
; AUTHOR: [[Author]]
;
;------------------------------------------------
##@QUERY_PRJ_NAME [[Project]]
NAME [[Project]]
##@QUERY_PRJ_NAME [[Project]]
##@QUERY_PRJ_COMPANY [[CompanyName]]
##@QUERY_PRJ_COPYRIGHT [[Copyright]]
##\\Copyright Copyright
DESCRIPTION '[[Project]] Application - [[Copyright]]'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE
HEAPSIZE 4096
STACKSIZE 8192
>>[DEF]TApplication [[TApplication]]
'
' Help project file
'
<<[HPJ]TApplication [[TApplication]]
##--BEGIN--@OPT_APPL_HELP
[OPTIONS]
CONTENTS=main_index
##@QUERY_TARGET_NAME [[Target]]
TITLE=[[Target]]
COMPRESS=true
WARNING=2
[FILES]
mainhelp.rtf ; main topics
##(((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU) || (@QUERY_APPL_MODEL != VALUE_DIALOG))
##@OPT_APPL_TOOLBAR
toolbar.rtf ; toolbar topics
keys.rtf ; keyboard topics
[BITMAPS]
helpicon.bmp
[MAP]
##HelpIncPath([[IncPath]])
#include <[[IncPath]].rh>
##--END-- @QUERY_DIR_H [[HDir]]
##--END--@OPT_APPL_HELP
>>[HPJ]TApplication [[TApplication]]
'
' .MAK file
'
'<<[MAK]TApplication [[TApplication]]
'##{make.owl}
'>>[MAK]TApplication [[TApplication]]
'
' Additional files must be created (.BMP, .ICO, .CUR)
<<[FILES]TApplication [[TApplication]]
##--BEGIN-- @OPT_APPL_PRINTING
@ "apxprint.cpp" > *[CPP]
@ "apxprint.h" > [H]
##: @QUERY_DIR_CPP [[CPPDir]]
##: --BEGIN-- @QUERY_DIR_H [[HDir]]
##: AddToProject(\\"[[HDir]]apxprint.h", \\"[[CPPDir]]apxprint.cpp")
##*
##: --END-- @QUERY_DIR_H [[HDir]]
@ "apxprev.cpp" > [CPP]
@ "apxprev.h" > [H]
##--END-- @OPT_APPL_PRINTING
##@QUERY_APPL_CONTROL == VALUE_BWCC
COPY "borabout.bmp" [RC]
##(((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU) || (@QUERY_APPL_MODEL != VALUE_DIALOG))
##--BEGIN-- @OPT_APPL_TOOLBAR
COPY "new.bmp" [RC]
COPY "open.bmp" [RC]
COPY "save.bmp" [RC]
COPY "undo.bmp" [RC]
COPY "cut.bmp" [RC]
COPY "copy.bmp" [RC]
COPY "paste.bmp" [RC]
COPY "find.bmp" [RC]
COPY "findnext.bmp" [RC]
##@OPT_APPL_PRINTING
COPY "preview.bmp" [RC]
##--END-- @OPT_APPL_TOOLBAR
##--BEGIN-- @OPT_APPL_PRINTING
COPY "previous.bmp" [RC]
COPY "next.bmp" [RC]
COPY "preview1.bmp" [RC]
COPY "preview2.bmp" [RC]
COPY "prexit.bmp" [RC]
##--END-- @OPT_APPL_PRINTING
##(((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU) || (@QUERY_APPL_MODEL != VALUE_DIALOG))
##(@OPT_APPL_TOOLBAR || @OPT_APPL_PRINTING)
COPY "print.bmp" [RC]
##--BEGIN-- @OPT_APPL_HELP
COPY "help.bmp" [RC]
COPY "helpicon.bmp" [RC]
##@QUERY_DIR_CPP [[CPPDir]]
##@QUERY_DIR_H [[HDir]]
##--BEGIN-- @QUERY_APPL_HELP [[Target]]
##QUERY_FILENAME_CPP [[FileName]]
##: AddToProject(\\"[[HDir]][[FileName]].rh", \\"[[CPPDir]][[Target]].hpj")
##*
@ "mainhelp.rtf" > [RC]
##: AddToProject(\\"[[CPPDir]]mainhelp.rtf", \\"[[CPPDir]][[Target]].hpj")
##*
##(((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU) || (@QUERY_APPL_MODEL != VALUE_DIALOG))
##@OPT_APPL_TOOLBAR 2
@ "toolbar.rtf" > [RC]
##: AddToProject(\\"[[CPPDir]]toolbar.rtf", \\"[[CPPDir]][[Target]].hpj")
##*
@ "keys.rtf" > [RC]
##: AddToProject(\\"[[CPPDir]]keys.rtf", \\"[[CPPDir]][[Target]].hpj")
##*
##--END-- @QUERY_TARGET_NAME [[Target]]
COPY "help.cur" [RC]
##--END-- @OPT_APPL_HELP
##<<TApplication QUERY_WIND_ICON [[Icon]]
COPY "[[Icon]]" [RC]
##@QUERY_APPL_MODEL == VALUE_MDI
##: <<TMDIChild QUERY_WIND_ICON [[Icon]]
COPY "[[Icon]]" [RC]
>>[FILES]TApplication [[TApplication]]