home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
VISBUILD
/
CALCULAT
/
CPPOV13
/
IMYKYBRD.HPP
< prev
Wrap
Text File
|
1995-05-15
|
2KB
|
70 lines
//****************************************************************************
// ICaptureMyKeys Class - C++ Header File (imykybrd.hpp) *
// *
// COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
// *
// DISCLAIMER OF WARRANTIES: *
// The following [enclosed] code is sample code created by IBM *
// Corporation. This sample code is not part of any standard IBM product *
// and is provided to you solely for the purpose of assisting you in the *
// development of your applications. The code is provided "AS IS", *
// without warranty of any kind. IBM shall not be liable for any damages *
// arising out of your use of the sample code, even if they have been *
// advised of the possibility of such damages. *
//****************************************************************************
//NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
//
#include <istring.hpp>
#include <ikeyevt.hpp> // IKeyboardEvent
#include <ikeyhdr.hpp> // IKeyboardHandler
#ifndef _IENTRYFD_
#include <ientryfd.hpp>
#endif
#ifndef _IPUSHBUT_
#include <ipushbut.hpp>
#endif
#include "ikeypad.hpp"
//**************************************************************************
// Class: ICaptureMyKeys
//
// Purpose: Captures the numeric keys entered from the keyboard and the
// arithmetic operation keys plus the equal (=) sign.
//
//***************************************************************************
class _Export ICaptureMyKeys : public IKeyboardHandler
{
public:
ICaptureMyKeys :: ICaptureMyKeys(IPushButton & ipluspb,IPushButton & isubpb,
IPushButton & imulpb, IPushButton & idivpb,
IPushButton & iequalpb,IKeypad & ikeypad);
~ICaptureMyKeys(); //destructor
// Implementor Method Functions
protected:
Boolean characterKeyPress(IKeyboardEvent& keyevt);
private:
// private member data
IPushButton & PlusPB;
IPushButton & MinusPB;
IPushButton & MultiplicationPB;
IPushButton & DivisionPB;
IPushButton & EqualPB;
IKeypad & Keypad;
}; //ICaptureMyKeys