home *** CD-ROM | disk | FTP | other *** search
- program STI_EDEM; { demonstration of editor }
-
- Uses Crt, { standard TP 5.0 unit }
- STI_ED_V, { editor variables }
- STI_DIR, { directory routine }
- STI_HELP, { help routine }
- STI_EDIT; { editor routine }
-
- {---------------------------------------------------------------------------}
-
- {$F+} { must be declared far }
- procedure Passed(Inch :ChrSet); { get the passed characters }
- {$F-} { Inch[1] := ASCII code }
- { Inch[2] := SHIFT etc }
- begin { Inch[3] := GRAPH, etc }
- end; { do nothing }
-
- {---------------------------------------------------------------------------}
-
- {$F+} { must be declarde far }
- function Get_File : string; { return a file name }
- {$F-}
- begin
- Get_File := STI_SelectFile(10,10,59,20,White,
- Yellow+Reverse,Green+Reverse,TRUE,'*.*');
- { get the name & return it }
- end;
-
- {---------------------------------------------------------------------------}
-
- {$F+} { must be declared far }
- procedure Help; { help the user }
- {$F-}
-
- begin
- STI_Do_Help('STI_ED.HLP',5000); { call the help system }
- end;
-
- {---------------------------------------------------------------------------}
-
- begin
- STI_ED(1,1,80,23, { these are maximum values }
- White, { text color }
- Green+Reverse, { border color }
- Yellow+Reverse, { highlight color }
- FALSE, { no border }
- 'NONAME', { file name }
- @Help, { help routine }
- @Get_File, { directory routine }
- @Passed); { routine to pass chars to }
- { one call does it all !!!! }
- end.