×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318

    disallowing users from editing/adding labels and deleting fields in my form?

    Hi

    I wish for users to be able to edit my form fields, but to disable them from editing/adding labels and deleting fields in my form.

    This features are provided by the form options menu once in edit mode.

    i tried taking away the EEikDialogFlagCbaButtons flag from the form resource, hopefully taking away the menu, well it didn't work.

    What should i do?

    thanks
    -advo-

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    Hi

    I think that the easiest way would be to disable the menus for the options you don't want users to use. To do that just implements DynInitMenuPaneL()-function for your form and in there the resource menupane is R_AVKON_FORM_MENUPANE (see AVKON.RSG), and the menu ID's can be find from AVKON.HRH. Example of hoe to use the function goes like this:

    //start code
    void CMyForm:ynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
    {
    CAknForm:ynInitMenuPaneL(aResourceId,aMenuPane);

    if (aResourceId == R_AVKON_FORM_MENUPANE) //see AVKON.RSG !
    {
    aMenuPane->SetItemDimmed(EAknFormCmdAdd,ETrue); //see AVKON.HRH !
    aMenuPane->SetItemDimmed(EAknFormCmdLabel,ETrue);
    aMenuPane->SetItemDimmed(EAknFormCmdDelete,ETrue);
    }
    }

    //End code

    yucca

  3. #3
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318
    It works! thanks!~
    Also refered to the AKNEXMENU example.

    -advo-

Posting Permissions

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