IDLitWindow::SetEventMask

Syntax | Arguments | Keywords | Version History

The IDLitWindow::SetEventMask procedure method enables the given events within this window.

When an event occurs within this window, if the corresponding event type is enabled, then the list of its window event observers will be notified of the event. See IDLitWindow::AddWindowEventObserver for more details.

Syntax

Obj->[IDLitWindow::]SetEventMask, [EventMask] [, /BUTTON_EVENTS] [, /KEYBOARD_EVENTS] [, /MOTION_EVENTS] [, /TIMER_EVENTS] [, /TRACKING_EVENTS] [, /WHEEL_EVENTS]

Arguments

EventMask

An unsigned long integer representing the bitwise mask for the events that are to be enabled for this window. The bits in the mask are as follows:

Table 32-21: Bits of the Event Mask

Bit
Value
Event

0

1

Button Events

1

2

Motion Events

2

4

Keyboard Events

3

8

Tracking Events

4

16

Timer Events

5

32

Wheel Events

This argument is optional; the keywords described below may be used instead.

Keywords

BUTTON_EVENTS

Set this keyword to indicate that mouse button events are to be enabled for this window.

KEYBOARD_EVENTS

Set this keyword to indicate the keyboard events are to be enabled for this window.

MOTION_EVENTS

Set this keyword to indicate that mouse motion events are to be enabled for this window.

TIMER_EVENTS

Set this keyword to indicate that timer events are to be enabled for this window.

TRACKING_EVENTS

Set this keyword to indicate that tracking events are to be enabled for this window.

Warning
In order to receive tracking events, you must implement the IDLitWindow::OnEnter and IDLitWindow::OnExit methods in your own subclass of the IDLitWindow class.

WHEEL_EVENTS

Set this keyword to indicate that mouse wheel events are to be enabled for this window.

Version History

6.0

Introduced

6.2

Added TIMER_EVENTS keyword

6.4

Added WHEEL_EVENTS keyword