×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    How to handle order of option menu

    When I have added items to optins menu.
    The order is : item1, item3, item2

    I have tried aMenuPane->InsertMenuItemAtL(iMenuItems[i], i);
    where i - The index into the menu pane's array of menu items at which to insert the new menu item. But this function doesn't suports yet.


    I think I should use the some AddMenuItemL () function with position parametr, but I do not know what kind of it is.


    It is very important for me, so if anybody can help me..... please do it!!

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: How to handle order of option menu

    Hello,
    try this way,

    use ItemAndPos() to get the index of the previous menu item and insert your current menu item on index+1..

    something like this..

    aMenuPane->ItemAndPos(item1, pos);
    aMenuPane->InsertMenuItemAtL(item3,pos+1);

    this link gives you a knowledge on AddMenuItemL()

    http://discussion.forum.nokia.com/fo...t=AddMenuItemL


    Priju

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    Re: How to handle order of option menu

    Hello,

    Thanks, but the problem is still left.
    I need usual order item1, item2, item3
    But I got item1, item3, item2

    I have tried to use InsertMenuItemAtL
    Error : undefined identifier 'InsertMenuItemAtL'

    Of course have included eikmenup.h and eikcoctl.lib before.
    What can be wrong in this way?

    Thanks a lot !

Similar Threads

  1. slide menu in j2me
    By afka in forum Mobile Java General
    Replies: 4
    Last Post: 2006-09-04, 09:10
  2. destroy dialog after choosing a menu option...
    By GeKI in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-08-21, 13:56
  3. Handle menu items for dialog
    By ninidotnet in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-07-05, 02:43
  4. Replies: 0
    Last Post: 2003-08-25, 10:29
  5. Missing Option in Menu
    By cj10488 in forum General Development Questions
    Replies: 0
    Last Post: 2003-08-06, 06:42

Posting Permissions

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