/* * Turbo Vision - Version 2.0 * * Copyright (c) 1994 by Borland International * All Rights Reserved. * Modified by Robert H”hne to be used for RHIDE. * * */ #define Uses_string #define Uses_TFileInputLine #define Uses_TEvent #define Uses_TSearchRec #define Uses_TFileDialog #include #if defined(TVCompf_djgpp) #include #endif #if defined(TVComp_BCPP) #include #include #endif TFileInputLine::TFileInputLine( const TRect& bounds, short aMaxLen ) : TInputLine( bounds, aMaxLen ) { eventMask = eventMask | evBroadcast; } /**[txh]******************************************************************** Description: Simple routine to join three strings without coping more than max+1 bytes. The data buffer must support max+1 bytes. The s2 and s3 parameters can be NULL.@p It could be implemented with var_args, any interest? ***************************************************************************/ static int strCat(char *d, char *s1, char *s2, char *s3, int max) { char *dest=d; char *end=dest+max; for (;*s1 && destattr & FA_DIREC) != 0 ) dataLen=strCat(data,((TSearchRec *)event.message.infoPtr)->name, DIRSEPARATOR_,((TFileDialog *)owner)->wildCard, maxLen); else dataLen=strCat(data,((TSearchRec *)event.message.infoPtr)->name,0,0,maxLen); drawView(); } } #if !defined( NO_STREAM ) TFileInputLine::TFileInputLine( StreamableInit ) : TInputLine( streamableInit) { } TStreamable *TFileInputLine::build() { return new TFileInputLine( streamableInit ); } #endif // NO_STREAM