home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
c
/
actlib11
/
tvtools
/
inhexa.cpp
< prev
next >
Wrap
Text File
|
1993-01-14
|
924b
|
41 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#define Uses_TStreamable
#define Uses_MsgBox
#define Uses_TInputHexa
#include "tvtools.h"
__link( RInputLine )
#include <string.h>
#include <stdio.h>
#include <values.h>
#include <stdlib.h>
#include <strstream.h>
#include "strings.h"
// TInputHexa
const char *const TInputHexa::name = "TInputHexa";
TStreamable *TInputHexa::build()
{
return new TInputHexa( streamableInit );
}
TInputHexa::TInputHexa( const TRect& bounds, int aMaxLen )
:TInputRegExp( bounds, aMaxLen, "0-9A-F", 0, UPPER )
{
}
TInputHexa::TInputHexa( int x, int y, int aMaxLen )
:TInputRegExp( x, y, aMaxLen, "0-9A-F", 0, UPPER )
{
}
TStreamableClass RInputHexa( TInputHexa::name,
TInputHexa::build,
__DELTA(TInputHexa)
);