To use the Toolbar API, follow the steps below.
AVKON
libraries
(avkon.lib
, eikcoctl.lib
) to the project
file of the application.
MAknToolbarObserver
)
interface. Set the class as the observer of the toolbar (
CAknToolbar
)
created in the previous step.Figure: Fixed toolbar with implementation classes
To use a toolbar in your application, implement the following use cases:
Adding and removing toolbar items (the toolbar buttons are defined in the Generic button API)
Accessing the toolbar from applications or application views
The following use cases are optional, allowing you to set additional properties for your toolbar:
To use a toolbar extension in your application, implement the following use cases:
The following use cases are optional, allowing you to set additional properties for your toolbar extension:
The main implementation files for the Toolbar API are:
akntoolbar.h
for creating the toolbar and setting
its properties
akntoolbarobserver.h
for handling toolbar events
akntoolbarextension.h
for creating the toolbar extension
and setting its properties