home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac
/
tvrw31d.zip
/
RESMKR.SKL
< prev
next >
Wrap
Text File
|
1996-04-16
|
4KB
|
144 lines
!
! Resource builder source skeleton file.
!
! Copyright (c) 1995-96 Balázs Scheidler
! This file is part of Turbo Vision Resource WorkShop
!
! Lines that begin with '!' are comments. All other lines are copied to the
! generated output.
!
! Lines that begin with ` are quoted lines. Quoted lines are directly copied
! to output WITHOUT macro expansion. Use this if you need something in a line
! beginning with $(
!
! The following macros are defined in this file:
!
! $(FULLNAME) = fully expanded filename
! $(FILENAME) = 8+3 filename
! $(FNAME) = 8 char file name
! $(FEXT) = 3 char extension
! $(DESCRIPTION)= The description of the project
! $(VERSION) = the version of this project
! $(AUTHOR) = the author of the project
! $(RESNAME) = name of the resource file to be generated
! $(MAKEFNS) = expands to the make functions of the objects to be generated
!
! You can also use a conditional "macro". It is called $(IFDEF xxxx), where
! xxxx is one of the below listed strings. TVRW will ignore the lines
! between $(IFDEF) and $(ENDIF) if the symbol xxxx is not defined.
! NOTE: DO NOT write anything else in lines which contain $(IFDEF) and
! $(ENDIF)
!
! xxxx can be one of the following:
! CPP
! PASCAL
!
! anything else: true if you gave them in the Sourcer Options dialog
! Defines inputline.
!
! These macros are case insensitive.
!
$(IFDEF PASCAL)
{**************************************************************************
$(FILENAME) resource maker program
Copyright (c) 1996 $(AUTHOR)
Generated by Turbo Vision Resource WorkShop
**************************************************************************}
program $(FNAME);
uses
Drivers, Objects, Views, Dialogs, Validate, Editors, StdDlg, App;
$(IFDEF ADDMAKEFNS)
$(MAKEFNS)
$(ENDIF)
var
ResFile: PResourceFile;
P: PObject;
begin
RegisterObjects;
RegisterViews;
RegisterDialogs;
RegisterValidate;
RegisterEditors;
RegisterStdDlg;
ResFile := New(PResourceFile, Init(New(PBufStream, Init('$(RESNAME).RES', stCreate, 4096))));
with ResFile^ do begin
$(PUTOBJECTS ResFile P)
end;
Dispose(ResFile, Done);
end.
$(ENDIF)
$(IFDEF CPP)
/**************************************************************************
$(FILENAME) resource maker program
Copyright (c) 1996 $(AUTHOR)
Generated by Turbo Vision Resource WorkShop
**************************************************************************/
#define Uses_TApplication
#define Uses_TKeys
#define Uses_TRect
#define Uses_TMenuBar
#define Uses_TSubMenu
#define Uses_TMenuItem
#define Uses_TStatusLine
#define Uses_TStatusItem
#define Uses_TStatusDef
#define Uses_TDeskTop
#define Uses_TButton
#define Uses_TLabel
#define Uses_TStaticText
#define Uses_TParamText
#define Uses_TMemo
#define Uses_TListBox
#define Uses_TSortedListBox
#define Uses_TScrollBar
#define Uses_THistory
#define Uses_TInputLine
#define Uses_TCheckBoxes
#define Uses_TRadioButtons
#define Uses_TPXPictureValidator
#define Uses_TStringLookupValidator
#define Uses_TRangeValidator
#define Uses_TDialog
#define Uses_TResourceFile
#include <tvision\tv.h>
__link(RLabel);
__link(RStaticText);
__link(RParamText);
__link(RMemo);
__link(RListBox);
__link(RSortedListBox);
__link(RScrollBar);
__link(RHistory);
__link(RInputLine);
__link(RCheckBoxes);
__link(RRadioButtons);
__link(RPXPictureValidator);
__link(RStringLookupValidator);
__link(RRangeValidator);
__link(RDialog);
$(IFDEF ADDMAKEFNS)
$(MAKEFNS)
$(ENDIF)
int main(void)
{
TResourceFile *resFile;
TObject *p;
resFile = new TResourceFile(new fpstream("$(RESNAME)", ios:in|ios:binary));
$(PUTOBJECTS resFile p);
TObject::destroy(resFile);
return (0);
}
$(ENDIF)