The IPageHandler class processes page change events for the INotebook class. These events result from a user interacting with a notebook page.
You can create a handler derived from IPageHandler and attach it to a notebook or to the notebook's owner window. You attach it by calling IHandler::handleEventsFor to identify the notebook or owner window to the page handler.
This class dispatches the following events:
When the page handler receives one of these events, it creates a corresponding event object and dispatches that object to the appropriate IPageHandler virtual function. You can override these virtual functions to supply customized processing of a page event.
The return value from the virtual functions specifies whether the page event is passed on for additional processing, as follows:
Constructors & DestructorYou can construct and destruct objects of this class.
![]() |
public:
virtual ~IPageHandler()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPageHandler()
Construct objects of this class using this, the default constructor, which does not accept any parameters.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Event DispatchingEvent-dispatching members evaluate an event to determine if it is appropriate for this handler object to process. If it is, this function calls the IPageHandler virtual function used to process the event.
![]() |
protected:
virtual bool dispatchHandlerEvent(IEvent& event)
If a page event is received, this calls the appropriate IPageHandler virtual function.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Event ProcessingEvent-processing members override these functions in a derived class to process the various notebook page-related events. Use the overridden function to supply the customized processing of a page-related event.
![]() |
protected:
virtual bool drawTab(INotebookDrawItemEvent& event)
Implemented by derived classes. It draws the notebook page tab.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
virtual bool help(IPageHelpEvent& event)
Implemented by derived classes. It processes a notification that help has been requested for a notebook page.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
You can set up help for individual notebook pages by setting up the help table and IHelpWindow object for each page in exactly the same way as for any other window object.
![]() |
protected:
virtual bool remove(IPageRemoveEvent& event)
Implemented by derived classes. It processes a page remove notification.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
This member function is never called in the AIX environment.
![]() |
protected:
virtual bool resize(IPageEvent& event)
Implemented by derived classes. It processes a notification that the page size changed.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
virtual bool select(IPageSelectEvent& event)
Implemented by derived classes. It processes the notification that a new page is at the top of the notebook.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
virtual bool selectPending(IPageSelectEvent& event)
Implemented by derived classes. It processes the notification that selection is pending on another page in the notebook.
Use this member to save the state of the outgoing page. To prevent the selection from changing to another page, set the event result to true via IEvent::setResult and return true on the exit from this member. For example, you might not want to switch from a multicell canvas in which a control has an invalid setting.
| Windows | OS/2 | AIX |
| Ignored | Yes | Ignored |
This member function is never called in the AIX environment.
virtual ~IHandler()
virtual IString asDebugInfo() const
virtual IString asString() const
virtual IHandler& disable()
virtual IHandler& enable(bool enable = true)
virtual IHandler& handleEventsFor(IWindow* window)
IHandler()
bool isEnabled() const
virtual IHandler& stopHandlingEventsFor(IWindow* window)
virtual IEventResult defaultProcedure(IEvent& event)
virtual bool dispatchHandlerEvent(IEvent& event) = 0