API published in: S60 1st Ed
Link against: eikcoctl.lib eikcore.lib
Required Capabilities
None
#include <eikmenub.h>
Inherits CEikBorderedControl, and MAknIntermediateState.
MENU_BAR
resources and issue application commands which should be handled by overriding CEikAppUi::HandleCommandL()
.
Public Types |
|
enum | TMenuType { EMenuOptions = 0, EMenuContext = 1, EMenuEdit = 2, EMenuOptionsNoTaskSwapper = 3 } |
Public Member Functions |
|
DECLARE_TYPE_ID (0x101F4106) struct SCursor | |
Specifies the menu item within the menu pane. |
|
IMPORT_C | ~CEikMenuBar () |
Destructor. |
|
IMPORT_C | CEikMenuBar () |
C++ default constructor. |
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
IMPORT_C void | Draw (const TRect &aRect) const |
From CCoeControl . |
|
IMPORT_C void | ConstructL (MEikMenuObserver *aMenuObserver, TInt aHotKeyResourceId=0, TInt aMenuTitleResourceId=0) |
Second phase constructor for a menu bar. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
Second phase constructor for a menu bar which builds the menu bar from the given resource file. |
|
IMPORT_C void | ChangeMenuBarL (TInt aHotKeyResourceId=0, TInt aMenuTitleResourceId=0, TInt aDisplayNow=ETrue) |
Not implemented. |
|
IMPORT_C CEikHotKeyTable * | SetHotKeyTable (CEikHotKeyTable *aHotKeyTable) |
Not implemented! |
|
IMPORT_C void | SetMenuTitleResourceId (TInt aMenuTitleResourceId) |
Sets the menu’s resource ID. |
|
IMPORT_C void | SetContextMenuTitleResourceId (TInt aMenuTitleResourceId) |
IMPORT_C void | SetMenuTitleArray (CTitleArray *aTitleArray) |
Not implemented. |
|
IMPORT_C void | SetTitleArrayOwnedExternally (TBool aOwnedExternally) |
Not implemented. |
|
IMPORT_C SCursor | SetMenuCursor (const SCursor &aCursor) |
Sets the cursor to the specifed menu pane and menu item. |
|
IMPORT_C void | StopDisplayingMenuBar () |
Stops displaying the menu bar. |
|
IMPORT_C void | TryDisplayMenuBarL () |
Displays the menu bar. |
|
IMPORT_C void | TryDisplayContextMenuBarL () |
IMPORT_C void | TryDisplayMenuBarWithoutFepMenusL () |
If the menu is not already displayed, this function displays the menu bar without fep menu and allows the user to make a selection.
|
|
IMPORT_C void | MoveHighlightToL (TInt aNewSelectedTitle, TInt aNewSelectedItem=0) |
Not implemented. |
|
IMPORT_C void | DrawItem (TInt aItem) const |
Not implemented. |
|
CEikHotKeyTable * | HotKeyTable () const |
Gets a pointer to the menu’s hot key table. |
|
IMPORT_C TInt | SelectedTitle () |
Gets the index of the menu pane selected by the cursor. |
|
IMPORT_C TInt | SelectedItem () |
Gets the index of the menu item selected by the cursor. |
|
virtual IMPORT_C void | FindCommandIdInResourceL (TInt aCommandId, TInt &aPaneindex, TInt &aItemindex) |
Searches for the menu item that corresponds to the specified command. |
|
IMPORT_C CEikMenuPane * | MenuPane () |
Gets a menu pane resource. |
|
IMPORT_C void | ReduceRect (TRect &aRect) const |
If the menu bar is visible, removes the menu bar height from the top of aRect and returns the new rectangle in a new value of aRect . |
|
IMPORT_C CTitleArray * | TitleArray () |
Gets array of information about the menu bar titles. |
|
IMPORT_C void | SetEditMenuObserver (MEikMenuObserver *aEditMenuObserver) |
Sets menu observer interface. |
|
IMPORT_C void | RemoveEditMenuObserver (MEikMenuObserver *aEditMenuObserver) |
Sets the menu observer interface to NULL . |
|
IMPORT_C TBool | IsDisplayed () |
Allows the client to determine if the menubar instance is displayed. |
|
IMPORT_C void | SetMenuType (TMenuType aMenuType) |
Sets type of the menu. |
|
virtual IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl . |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
Friends |
|
class | CEikMenuPaneTitle |
class | CEikMenuBarExtension |
Data Structures |
|
class | CTitleArray |
This class enables construction, and destruction of an array of information about menu bar titles. More... |
|
struct | SPosition |
|
|
Destructor. |
|
C++ default constructor. |
|
Not implemented.
|
|
Second phase constructor for a menu bar which builds the menu bar from the given resource file.
|
|
Second phase constructor for a menu bar.
|
|
Specifies the menu item within the menu pane. Index of a title in the menu bar. Index of an item in a menu pane. |
|
From Not implemented.
Reimplemented from CEikBorderedControl. |
|
Not implemented.
|
|
Searches for the menu item that corresponds to the specified command.
|
|
From Gets the list of logical colours used to draw the control. The list includes an explanation of how each colour is used. By default, this function has an empty implementation.
Reimplemented from CEikBorderedControl. |
|
From Handles pointer events. This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type
If overriding
Reimplemented from CEikBorderedControl. |
|
From Handles a change to the control's resources. The types of resources handled are those which are shared across the environment, e.g. colours or fonts.
Reimplemented from CEikBorderedControl. |
|
Gets a pointer to the menu’s hot key table. |
|
Allows the client to determine if the menubar instance is displayed.
|
|
Gets a menu pane resource.
|
|
Not implemented.
|
|
From
Handles key events offered to the menu by the control environment and provides an appropriate implementation of
|
|
If the menu bar is visible, removes the menu bar height from the top of
|
|
Sets the menu observer interface to
|
|
Gets the index of the menu item selected by the cursor.
|
|
Gets the index of the menu pane selected by the cursor.
|
|
|
|
Sets menu observer interface.
|
|
Not implemented!
|
|
Sets the cursor to the specifed menu pane and menu item.
|
|
Not implemented.
|
|
Sets the menu’s resource ID.
|
|
Sets type of the menu. Menu can be for example Options menu launched from Options softkey or context sensitive menu launched from the selection key. By default the launched menu is options menu.
|
|
Not implemented.
|
|
Stops displaying the menu bar.
This function causes the menu bar to disappear from the screen until it is invoked again by the user. In most circumstances
this is done by the |
|
Gets array of information about the menu bar titles.
|
|
|
Displays the menu bar.
If the menu is not already displayed, this function displays the menu bar and allows the user to make a selection. In most
circumstances this is done by the |
|
If the menu is not already displayed, this function displays the menu bar without fep menu and allows the user to make a selection.
In most circumstances this is done by the |
|
|