×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    217

    how to make EAknSoftkeyBack work in Form view ?

    hi

    first i create empty view , make its option menu one command to open a form view.

    second i gen a form view by ui designer .

    now in first view's menu command , i put following code in CForm1::OkToExitL( TInt aButtonId )

    if( aButtonId == 3001 ) //back
    {
    TUid KMyUidOperaBrowser = {0x101F4DED};
    TVwsViewId viewId(KMyUidOperaBrowser, TUid::Uid(EFormSeeContainerViewId));
    (STATIC_CAST(CAknAppUi*, CEikonEnv::Static()->AppUi()))->
    ActivateViewL(viewId );

    }

    nothing happened.

    i try to put in view::handlecommand,also silent.


    if ( aCommand == EAknSoftkeyBack )
    {
    AppUi()->ActivateLocalViewL(TUid::Uid( EFormSeeContainerViewId ));
    }

    I need your help to make my form view can back to last view or activate other view.
    thanks.

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: how to make EAknSoftkeyBack work in Form view ?

    Quote Originally Posted by nokia_lin View Post
    hi


    if ( aCommand == EAknSoftkeyBack )
    {
    AppUi()->ActivateLocalViewL(TUid::Uid( EFormSeeContainerViewId ));
    }

    I need your help to make my form view can back to last view or activate other view.
    thanks.


    so what happens if you execute the above command, it leaves or gives any panic or what

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    217

    Re: how to make EAknSoftkeyBack work in Form view ?

    nothing happened.

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: how to make EAknSoftkeyBack work in Form view ?

    try something like below:


    if(aCommand == EAknSoftkeyBack)
    {

    iAppUi->ActivateView1();

    }

    where ActivateView1() is in APPui class as:

    void CYourAppUi::ActivateView1()
    {

    ActivateLocalViewL(iAppView1->Id());


    }
    where iAppView1 = CYourView1::NewL();

  5. #5
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    217

    Re: how to make EAknSoftkeyBack work in Form view ?

    this work fine.
    thanks.

Similar Threads

  1. Build Error on Carbide
    By deepak_pious in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2010-05-23, 09:37
  2. Replies: 11
    Last Post: 2008-06-26, 05:54
  3. how to make animated gif animate on form
    By 0odevilzo0 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-11-05, 17:53
  4. abld freeze does not work !
    By arongpan in forum Symbian
    Replies: 2
    Last Post: 2005-09-20, 02:22
  5. How to launch a different view from a form?
    By varshajohn in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-11-16, 05:38

Posting Permissions

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