×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    how to add edit menu on the form

    Hi,

    After setting flag=EEikFormEditModeOnly, my form appears in edit mode but i want to show edit option on my form how wil i do it, pls help?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere
    Posts
    475

    Manipulate the Form menu items

    Hi,

    Dialogs and Froms use DynInitMenuPaneL() method to dynamically initialises a menu pane. The Uikon framework calls this function, if it is implemented in a menu’s observer, immediately before the menu pane is activated:

    // CMyForm derived from CAknForm

    void CMyForm::DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
    {
    CAknForm::DynInitMenuPaneL (aResourceId, aMenuPane);
    if (aResourceId == R_AVKON_FORM_MENUPANE)
    {
    aMenuPane->SetItemDimmed(EAknFormCmdEdit, EFalse );
    ...

    Best Regards,
    (V) - Forum Nokia Developer Support

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    13

    More info please..

    EAknFormCmdEdit is for "Edit"
    EAknFormCmdDelete is for "Delete"

    what about the "Edit label"?

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere
    Posts
    475

    avkon.hrh

    Please use ' EAknFormCmdLabel ' .

    The enumerations defined in avkon.hrh:
    ...
    // FORM default menu constants
    enum
    {
    EAknFormCmdEdit = 950,
    EAknFormCmdAdd,
    EAknFormCmdSave,
    EAknFormCmdLabel,
    EAknFormCmdDelete,
    EAknFormMaxDefault
    };
    ...
    Best Regards,
    (V) - Forum Nokia Developer Support

  5. #5
    Registered User
    Join Date
    May 2005
    Posts
    13
    TNx!! ^__^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×