IKey

The IKey class contains common keyboard-related elements that can be used in more than one class.

You cannot create objects of this class, because IKey has no public constructors.


IKey - Member Functions and Data by Group

Key Modifiers

Use the KeyModifier objects to specify a combination of auxiliary keys. You can use these objects with the IAcceleratorKey class.


[view class]
alt
public:
static const KeyModifier alt

An IKey::KeyModifier object that represents the Alt key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
ctrl
public:
static const KeyModifier ctrl

An IKey::KeyModifier object that represents the Ctrl key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
noModifier
public:
static const KeyModifier noModifier

An IKey::KeyModifier object that represents the absence of the Alt, Ctrl, and Shift keys.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
shift
public:
static const KeyModifier shift

An IKey::KeyModifier object that represents the Shift key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Virtual Keys

IKey provides a set of VirtualKey values that you can use as virtual key codes in the IAcceleratorKey class.


[view class]
kAlt
public:
static const VirtualKey kAlt

Represents the left and right Alt keys.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kAltGraf
public:
static const VirtualKey kAltGraf

Represents the AltGraf key.
Note: This key is not available on all keyboards.

Supported Platforms

Windows OS/2 AIX
No Yes No


[view class]
kBackSpace
public:
static const VirtualKey kBackSpace

Represents the Backspace key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kBackTab
public:
static const VirtualKey kBackTab

Represents the back tab key.
Note: This is equivalent to the Tab key with the Shift modifier.

Supported Platforms

Windows OS/2 AIX
No Yes No


[view class]
kBreak
public:
static const VirtualKey kBreak

Represents the Break key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kCapsLock
public:
static const VirtualKey kCapsLock

Represents the Caps Lock key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kCtrl
public:
static const VirtualKey kCtrl

Represents the left and right Ctrl keys.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kDelete
public:
static const VirtualKey kDelete

Represents the Delete key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kDown
public:
static const VirtualKey kDown

Represents the down arrow key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kEnd
public:
static const VirtualKey kEnd

Represents the End key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kEnter
public:
static const VirtualKey kEnter

Represents the Enter key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kEsc
public:
static const VirtualKey kEsc

Represents the Esc key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF1
public:
static const VirtualKey kF1

Represents the F1 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF10
public:
static const VirtualKey kF10

Represents the F10 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF11
public:
static const VirtualKey kF11

Represents the F11 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF12
public:
static const VirtualKey kF12

Represents the F12 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF13
public:
static const VirtualKey kF13

Represents the F13 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF14
public:
static const VirtualKey kF14

Represents the F14 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF15
public:
static const VirtualKey kF15

Represents the F15 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF16
public:
static const VirtualKey kF16

Represents the F16 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF17
public:
static const VirtualKey kF17

Represents the F17 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF18
public:
static const VirtualKey kF18

Represents the F18 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF19
public:
static const VirtualKey kF19

Represents the F19 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF2
public:
static const VirtualKey kF2

Represents the F2 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF20
public:
static const VirtualKey kF20

Represents the F20 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF21
public:
static const VirtualKey kF21

Represents the F21 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF22
public:
static const VirtualKey kF22

Represents the F22 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF23
public:
static const VirtualKey kF23

Represents the F23 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF24
public:
static const VirtualKey kF24

Represents the F24 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF3
public:
static const VirtualKey kF3

Represents the F3 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF4
public:
static const VirtualKey kF4

Represents the F4 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF5
public:
static const VirtualKey kF5

Represents the F5 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF6
public:
static const VirtualKey kF6

Represents the F6 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF7
public:
static const VirtualKey kF7

Represents the F7 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF8
public:
static const VirtualKey kF8

Represents the F8 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kF9
public:
static const VirtualKey kF9

Represents the F9 key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kHome
public:
static const VirtualKey kHome

Represents the Home key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kInsert
public:
static const VirtualKey kInsert

Represents the Insert key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kLeft
public:
static const VirtualKey kLeft

Represents the left arrow key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kNewLine
public:
static const VirtualKey kNewLine

Represents the new line key.
Note: This key often has the label Enter on its key top.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kNoKey
public:
static const VirtualKey kNoKey

Represents the absence of a virtual key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kNumLock
public:
static const VirtualKey kNumLock

Represents the Num Lock key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kPageDown
public:
static const VirtualKey kPageDown

Represents the Page Down key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kPageUp
public:
static const VirtualKey kPageUp

Represents the Page Up key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kPause
public:
static const VirtualKey kPause

Represents the Pause key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kRight
public:
static const VirtualKey kRight

Represents the right arrow key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kScrollLock
public:
static const VirtualKey kScrollLock

Represents the Scroll Lock key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kShift
public:
static const VirtualKey kShift

Represents the left and right Shift keys.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kSpace
public:
static const VirtualKey kSpace

Represents the Space bar.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kSysRq
public:
static const VirtualKey kSysRq

Represents the SysRq key.

Supported Platforms

Windows OS/2 AIX
No Yes No


[view class]
kTab
public:
static const VirtualKey kTab

Represents the Tab key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
kUp
public:
static const VirtualKey kUp

Represents the up arrow key.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IKey - Type Definitions


[view class]
VirtualKey
typedef unsigned long VirtualKey

This typedef helps document that the VirtualKey values provided by this class can be used as virtual key codes in the IAcceleratorKey class. The use of this typedef also allows you to use virtual key codes not provided by IKey with IAcceleratorKey.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IKey - Inherited Member Functions and Data

Inherited Public Functions

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data