Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007

    How to activate another view on selection of Setting List item

    Hi All

    I'm working with Setting list. I want that whenever I select particular item of setting list it should activate another view. I achieve to some extent in offerkeyEventL() function as follows:

    TKeyResponse CMedicinePlannerView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
    TKeyResponse aResponse;

    if ( aType != EEventKey ) // Is not key event?
    return EKeyWasNotConsumed;
    switch ( aKeyEvent.iCode ) // The code of key event is...
    const TInt current = m_pMedicinePlannerList- >ListBox()->CurrentItemIndex();
    case 0:
    //This view which I want to activate on this list item

    But problem is that when I select setting list item and click OK it shows item's editor. Actually I don't want to show this editor.
    If anybody know, plz. help me.


  2. #2
    Registered User
    Join Date
    May 2007

    Re: How to activate another view on selection of Setting List item

    I am not entirely sure about this but i think on selecting the Setting List Item
    the control goes into the EditItemL() of the Setting List. Maybe you could somehow do the View Activation here??

  3. #3
    Regular Contributor
    Join Date
    Aug 2007

    Re: How to activate another view on selection of Setting List item

    This is view or container file?

    If this is a view file (derived from CAknView), you can change view by AppUi()->ActivateLocalViewL(TUid::Uid(EDosesTimeListBoxView));

    Or if this is a container file (derived from CCoeControl), you can use:
    CMedicinePlannerAppUi *iappui=(CMedicinePlannerAppUi *)CEikonEnv::Static()->EikAppUi();
    and you have to include "CMedicinePlannerAppUi .h" at the header of file.

    I think this is a container file because OfferKeyEventL() function is usually in container file but it's name is "...View" ???

    Hope this can help you!

Similar Threads

  1. Replies: 4
    Last Post: 2009-02-17, 21:24
  2. Partly dynamically setting list problem
    By kaiten-sushi in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-05-09, 16:22
  3. setting list not shown
    By sunny_singh in forum Symbian
    Replies: 6
    Last Post: 2007-04-30, 12:18
  4. How to include setting item list in a form
    By anand_zain76 in forum Symbian User Interface
    Replies: 11
    Last Post: 2006-06-01, 13:02
  5. How do I make an item in a selection list get selected...
    By msandov in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2003-07-24, 20:04

Posting Permissions

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