×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    135

    how to get the position of a cascaded item in a menu?

    hello,

    how to get the position of a cascaded item in a menu?


    I have a dynamically created menu in my DynInitMenuPaneL() method.
    i have more cascaded items in my S60 menu.


    item1 -> sub item 1
    sub item 2
    sub item 3

    item2 -> sub item 1
    sub item 2


    first i add the "main" items and then i need to add the items in the cascade menu for each "main item" (the sub items).

    but because I add them dynamically, I need to retrive the current or selected "main item" position in order to know what cascaded items(sub items) to add

    in a cascade menu , SelectedItem() get the position of the selected cascade item(subitem), not of the main item

    My question is how to add the subitems for each item dynamically
    how do i know in my DynInitMenuPaneL() function , which main item the user has selected in order to fill the cascade pane accordingly?

    thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: how to get the position of a cascaded item in a menu?

    When you are initializing a cascade menu, the owner menu object still exists - at least as I imagine. Thus it should be valid if you store the CEikMenuPane* when constructing the outer menu, and use it when initializing the inner menu.

Similar Threads

  1. menu item
    By nicholasgaye in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-05-06, 08:40
  2. cascaded menu
    By kurtrips in forum Symbian
    Replies: 5
    Last Post: 2004-08-25, 03:55
  3. 6600 item commands & options menu
    By random_john_doe in forum Mobile Java General
    Replies: 0
    Last Post: 2003-12-10, 16:18
  4. Cascade Menu item with icon
    By mikkyt in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-05-12, 12:18
  5. How to add a menu item in the Options menu of a Nokia 7650 ?
    By nmittal in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-08-07, 08:23

Posting Permissions

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