API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <akndialog.h>
Inherits CEikDialog.
Inherited by CAknColourSelectionGrid, CAknForm, CAknQueryDialog, and CAknSelectionListDialog.
AknDialogs
.
Instances of the CAikDialog
class may be created, and it is possible to add controls directly to them. However it is more normal to create a subclass,
and to handle the controls appearing on the dialog dynamically.
Public Member Functions |
|
IMPORT_C | CAknDialog () |
C++ default constructor. |
|
IMPORT_C void | ConstructL (TInt aMenuTitleResourceId) |
Handles Symbian 2nd phase construction. |
|
IMPORT_C | ~CAknDialog () |
Destructor. |
|
IMPORT_C TInt | ExecuteLD (TInt aResourceId) |
From CEikDialog . |
|
IMPORT_C void | PrepareLC (TInt aResourceId) |
From CEikDialog . |
|
IMPORT_C TInt | RunLD () |
From CEikDialog . |
|
virtual IMPORT_C void | SetEmphasis (CCoeControl *aMenuControl, TBool aEmphasis) |
From MEikMenuObserver . |
|
virtual IMPORT_C void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
Not implemented. |
|
virtual IMPORT_C void | ProcessCommandL (TInt aCommandId) |
From MEikMenuObserver . |
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl . |
|
IMPORT_C void | FocusChanged (TDrawNow aDrawNow) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Member Functions |
|
virtual IMPORT_C TBool | OkToExitL (TInt aButtonId) |
From CEikDialog . |
|
IMPORT_C void | DisplayMenuL () |
From CEikDialog . |
|
IMPORT_C void | HideMenu () |
From CEikDialog . |
|
IMPORT_C TBool | MenuShowing () const |
From CEikDialog . |
|
virtual IMPORT_C void | SizeChanged () |
From CEikDialog . |
|
virtual IMPORT_C void | Draw (const TRect &aRect) const |
From CEikDialog . |
|
IMPORT_C TTypeUid::Ptr | MopSupplyObject (TTypeUid aId) |
From MObjectProvider . |
|
void | CreateMenuBarL (TInt aMenuTitleResourceId) |
Creates or replaces dialog's menu bar. |
|
Protected Attributes |
|
CEikMenuBar * | iMenuBar |
Dialog's menu bar. |
|
C++ default constructor. |
|
Destructor. |
|
Handles Symbian 2nd phase construction.
A menu resource MUST be specified - this function will Panic otherwise. If a menu is not required use
Reimplemented in CAknForm, CAknSelectionListDialog, and CAknMarkableListDialog. |
|
Creates or replaces dialog's menu bar.
|
|
From Displays menu bar. |
|
From Draws the control.
Reimplemented from CEikDialog. Reimplemented in CAknSelectionListDialog. |
|
Not implemented.
Reimplemented in CAknForm, and CAknMarkableListDialog. |
|
From Loads, displays, and destroys the dialog. This function loads the specified dialog from a resource and displays it. The method then destroys the dialog when it exits, therefore there is no need for the application program to destroy the dialog.
Reimplemented from CEikDialog. Reimplemented in CAknQueryDialog. |
|
From Responds to a change in focus.
This is called whenever the control gains or loses focus, as a result of a call to
Reimplemented from CEikDialog. |
|
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
Reimplemented from CEikDialog. Reimplemented in CAknForm, CAknListQueryDialog, CAknMessageQueryDialog, CAknQueryDialog, CAknTextQueryDialog, CAknNumberQueryDialog, CAknTimeQueryDialog, CAknDurationQueryDialog, CAknFloatingPointQueryDialog, CAknMultiLineDataQueryDialog, CAknSelectionListDialog, and CAknMarkableListDialog. |
|
From Hides menu bar. |
|
From Checks if menu is displayed.
|
|
From Gets Mop supply object of the given type.
Reimplemented from CEikDialog. |
|
From Handles key events.
If a control wishes to process key events, it should implement this function. The implementation must ensure that the function
returns
When a key event occurs, the control framework calls this function for each control on the control stack, until one of them
can process the key event (and returns
Each keyboard key press results in three separate events:
To receive key events, which can be processed by this function, the application should call
Reimplemented from CEikDialog. Reimplemented in CAknListQueryDialog, CAknMessageQueryDialog, CAknQueryDialog, CAknSelectionListDialog, and CAknMarkableListDialog. |
|
From Handles a dialog button press for the specified button.
This function is invoked when the user presses a button in the button panel. It is not called if the Cancel button is activated
unless the If there is an Options key then pops up menu, otherwise exits.
The function should be overridden by the derived class, and is usually used to validate the values of the dialog's controls.
The function should return
Reimplemented from CEikDialog. Reimplemented in CAknForm, CAknListQueryDialog, CAknQueryDialog, CAknTextQueryDialog, CAknNumberQueryDialog, CAknTimeQueryDialog, CAknDurationQueryDialog, CAknFloatingPointQueryDialog, CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, CAknMultiLineIpQueryDialog, CAknSelectionListDialog, and CAknMarkableListDialog. |
|
From Prepares the dialog, by constructing it from the specified resource.
Reimplemented from CEikDialog. |
|
From Hides the menu.
Reimplemented in CAknForm, CAknMessageQueryDialog, CAknSelectionListDialog, and CAknMarkableListDialog. |
|
From Runs the dialog and returns the ID of the button used to dismiss it. The dialog is destroyed on exit.
This function is called by the dialog framework (
The function returns immediately unless
Reimplemented from CEikDialog. Reimplemented in CAknQueryDialog. |
|
From Called by the Uikon framework to handle the emphasising or de-emphasising of a menu window.
|
|
From Lays out the dialog's components when the size of the dialog is changed. Reimplemented from CEikDialog. |
|
Dialog's menu bar. Not owned. |