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

 
Output of file : TCOLORTX.H contained in archive : DLGDS411.ZIP
#if defined( Uses_TColoredText ) && !defined( __TColoredText )
#define __TColoredText

class far TRect;

class TColoredText : public TStaticText
{

public:

TColoredText( const TRect& bounds, const char *aText, ushort attribute );

virtual void draw();
virtual ushort getTheColor();

protected:

ushort attr;

private:

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

protected:

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

public:

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

};

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

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

#endif // Uses_TColoredText



  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : DLGDS411.ZIP
Filename : TCOLORTX.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/