×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    4

    7650 SetDefaultViewL() doesn't set right navigation tab

    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
    Join Date
    Mar 2003
    Posts
    271

    RE: 7650 SetDefaultViewL() doesn't set right navigation tab

    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
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    RE: 7650 SetDefaultViewL() doesn't set right navigation tab

    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
  •  
×