Category : Miscellaneous Language Source Code
Archive   : DLGDS411.ZIP
Filename : TINPLONG.H

 
Output of file : TINPLONG.H contained in archive : DLGDS411.ZIP
#if defined( Uses_TInputLong ) && !defined( __TInputLong )
#define __TInputLong

//flags for TInputLong constructor

const
ilHex = 1, //will enable hex input with leading '0x'
ilBlankEqZero = 2, //No input (blank) will be interpreted as '0'
ilDisplayHex = 4; //Number displayed as hex when possible

class far TRect;
class far TEvent;

class TInputLong : public TInputLine
{

public:

TInputLong( const TRect& bounds, int aMaxLen, long lowerLim,
long upperLim, ushort flags, const char* labelName = 0 );
~TInputLong();

virtual ushort dataSize();
virtual void getData( void *rec );
virtual void handleEvent( TEvent& event );
virtual void setData( void *rec );
virtual Boolean rangeCheck();
virtual void error();
virtual Boolean valid(ushort command);

ushort ilOptions;
long lLim, uLim;
char* label;

private:

virtual const char *streamableName() const
{ return name; }

protected:

TInputLong( StreamableInit );
virtual void write( opstream& );
virtual void *read( ipstream& );

public:

static const char * const near name;
static TStreamable *build();

};

inline ipstream& operator >> ( ipstream& is, TInputLong& cl )
{ return is >> (TStreamable&)cl; }
inline ipstream& operator >> ( ipstream& is, TInputLong*& cl )
{ return is >> (void *&)cl; }

inline opstream& operator << ( opstream& os, TInputLong& cl )
{ return os << (TStreamable&)cl; }
inline opstream& operator << ( opstream& os, TInputLong* cl )
{ return os << (TStreamable *)cl; }

#endif // Uses_TInputLong



  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : DLGDS411.ZIP
Filename : TINPLONG.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/