Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User 4sure's Avatar
    Join Date
    Mar 2003
    Posts
    4
    S60 SDK 0.9, 7650 firmware 3.12
    Generate an EIKON Control based application using the supplied 'Series 60 AppWizard v1.9' with view architecture support.
    AppUi::ConstructL() creates the 2 views and calls SetDefaultView(*view).
    If you start the app the 1st view is shown and the 1st navigation tab is the active tab.
    Now change the call to SetDefaultView(*view2).
    This time the 2nd view is indeed shown at startup, but the 1st navigation tab is still the active tab.
    I tried calling SetActiveTabById() plus ActivateLocalViewL().
    This works when I call them eg. after a keypress, but calling them in ConstructL results in the right tab but always the 1st view...
    Anyone got an idea how to handle this properly?

    TX,
    Rene

  2. #2
    Nokia Developer Expert vphong's Avatar
    Join Date
    Mar 2003
    Posts
    271
    Hi,

    I am not very sure if this helps, but please try to call

    view2->AknViewActivatedL(view2->ViewId(), KAppViewId/*your view id*/, KNullDesC8);

    instead of ActiveLocalView().

    Regards,
    FN Developer Support

  3. #3
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    Tabs and views are separate, they are not connected together automatically. If you activate a view, then you just active the view.

    If you want to change the active tab, you have to do it by yourself.
    Check for example CAknTabGroup::SetActiveTabByIndex(TInt aTabIndex)

    --jouni

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved