home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Total C++ 2
/
TOTALCTWO.iso
/
vfp5.0
/
vfp
/
tools
/
transfrm
/
samples
/
mytrnsfm.prg
< prev
next >
Wrap
Text File
|
1996-08-21
|
790b
|
46 lines
* MyTrnsfm.prg
* Example of subclassing the Transformer.
* To run the subclassed Transformer, execute:
* DO Transfrm WITH "MyTrnsfm.prg,MyTransformer","MyTrnsfm.prg,MyTransformFiles"
*
DEFINE CLASS MyTransformer AS Transformer
Caption="My Transformer"
ENDDEFINE
DEFINE CLASS MyTransformFiles AS TransformFiles
cGetFileExt='pjx|scx|vcx|mnx|frx'
FUNCTION Do(tlAddFontRules)
=MESSAGEBOX(" The transformation process has been subclassed.",48, ;
this.parent.Caption)
RETURN oTransformFiles::Do(tlAddFontRules)
ENDFUNC
PROTECTED FUNCTION ProcessMenuRules
ACTIVATE SCREEN
? "Menu: "+DBF()
GO BOTTOM
ENDFUNC
PROTECTED FUNCTION ProcessReportRules
ACTIVATE SCREEN
? "Report: "+DBF()
GO BOTTOM
ENDFUNC
ENDDEFINE