IControlEvent

The IControlEvent class represents a notification event from a control. Many control event handler classes, such as IEditHandler, construct and process objects of this class. These notification events are first dispatched to the handlers attached to the control itself, then to the handlers attached to the owner window of the control.

AIX Considerations

An IControlEvent encapsulates various widget callbacks and certain X events.

OS/2 Considerations

An IControlEvent encapsulates the Presentation Manager message WM_CONTROL.


IControlEvent - Member Functions and Data by Group

Constructors & Destructor

You can construct, destruct, and copy objects of this class.

Typically, a handler object, in its dispatchHandlerEvent function, constructs an IControlEvent object from an IEvent object. The handler then passes the IControlEvent object to one of its virtual functions. For example, the class IEditHandler constructs an IControlEvent, which it passes to its edit function.


[view class]
~IControlEvent
public:
virtual ~IControlEvent()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IControlEvent


Overload 1
public:
IControlEvent(const IControlEvent& event)

Create an IControlEvent from another IControlEvent object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IControlEvent(const IEvent& event)

Create an IControlEvent from a generic IEvent object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Event Information

Use these members to query information about the control that the event was generated from.


[view class]
controlId
public:
virtual unsigned long controlId() const

Returns the window ID of the control the event applies to.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IControlEvent - Inherited Member Functions and Data

Inherited Public Functions

IEvent

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data