The ICnrEnterEvent class retrieves information about a container enter event. Objects of this class are dispatched when an enter event occurs in the container. This can be as a result of the following:
You can construct and destruct objects of this class.
![]() |
public:
virtual ~ICnrEnterEvent()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
ICnrEnterEvent(const IControlEvent& event)
Although you can construct objects of this class, typically ICnrHandler::dispatchHandlerEvent creates objects of this class from an object of the class IControlEvent in response to the user pressing the Enter key or double-clicking the mouse select button.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to query and set the accessible attributes of this class.
![]() |
public:
bool enterPressed() const
If the event is the result of pressing the Enter key, true is returned. Otherwise, the event occurred because the mouse select button was double-clicked.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IContainerObject* object() const
Returns the object over which the enter occurred. If the enter did not occur on an object, 0 is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool validObject() const
If the event occurred over an object, true is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~ICnrEvent()
ICnrEvent(const IControlEvent& event)
virtual ~IControlEvent()
virtual unsigned long controlId() const
IControlEvent(const IEvent& event)
IControlEvent(const IControlEvent& event)
virtual ~IEvent()
IWindowHandle controlHandle() const
virtual IWindow* controlWindow() const
IEvent& decrementOwnerLevels()
virtual IWindow* dispatchingWindow() const
unsigned long eventId() const
IWindowHandle handle() const
IEvent(const IEvent& event)
IEvent( IWindow* window, unsigned long eventId, const IEventParameter1& parameter1, const IEventParameter2& parameter2 )
IEvent( const IWindowHandle& handle, unsigned long eventId, const IEventParameter1& parameter1, const IEventParameter2& parameter2 )
IEvent& operator =(const IEvent& event)
IEventParameter1 parameter1() const
IEventParameter2 parameter2() const
bool passToOwner() const
IEventResult result() const
IEvent& setControlHandle(const IWindowHandle& handle)
IEvent& setDispatchingHandle(const IWindowHandle& handle)
IEvent& setDispatchingWindow(IWindow* window)
IEvent& setHandle(const IWindowHandle& handle)
IEvent& setNumberOfLevels(int levels = - 1)
IEvent& setPassToOwner(bool passOn = true)
IEvent& setResult(bool eventResult)
IEvent& setResult(const IEventResult& eventResult)
virtual IWindow* window() const
unsigned long containerId() const