Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    Hi,

    I'm facing a problem with the display of the menu, if a function is called, the menu stays on the display until the function end, this is annoying if the function is very long ... is it therefore possible to hide the menu in the begining of the function (S60 v1-v2) ?

    in the following example, the menu stays displayed until MyFunc() finished

    ex:

    void CMyApp::HandleCommandL(TInt aCommand)
    {
    if( aCommand==WhatIWantToDo)
    MyFunc();
    }

    void CMyApp::MyFunc()
    {
    // this function is long ....
    }

    Thanks in advance !
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    looks like your function (MyFunc()) takes some time to finsh its task so it is blocking the flow. So solution is to make the function Async .

    How to make a long running function to Asyn ? look in to wiki..

  3. #3
    Regular Contributor ranjeet raj's Avatar
    Join Date
    Sep 2007
    Posts
    65
    Hi,
    check in this class CEikMenuBar.
    use StopDisplayingMenuBar() method.
    hope it will solve ur problem..
    Thanks & Regards
    Ranjeet

  4. #4
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    Hi,

    thanks for this fast reply.

    I had tried "CEikMenuBar( ).StopDisplayingMenuBar();" but this crashes the application ....

    to complete my question, in fact, in my function (MyFunc()), I display a popup floating window but it displayed *behind* the menu - this is my main problem ....

    Cheers,
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  5. #5
    Regular Contributor ranjeet raj's Avatar
    Join Date
    Sep 2007
    Posts
    65
    CEikMenuBar is a class.. create a object of this class.
    use like obj.StopDisplayingMenuBar();
    Thanks & Regards
    Ranjeet

  6. #6
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    yes,

    that was I have done :

    CEikMenuBar* menuBar=iEikonEnv->AppUiFactory()->MenuBar();
    if( menuBar )
    menuBar->StopDisplayingMenuBar();

    but menuBar is always = 0 ....

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  7. #7
    Regular Contributor ranjeet raj's Avatar
    Join Date
    Sep 2007
    Posts
    65
    put it in a method and use it before any key pressed...
    like i am using for every switch case.
    Thanks & Regards
    Ranjeet

  8. #8
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    can you be more explicit with an example ... if I don't abuse ... I not really understand what you mean

    BTW: thanks so much for trying to help me !

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  9. #9
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You can also try if CEikButtonGroupContainer::Current works.

  10. #10
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    this doesn't help wizard_hu_ ...

    what I don't understand is if I have a sub-menu, this one is hided before the call to the function but the main menu stays displayed ...

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  11. #11
    Regular Contributor mohd kashif's Avatar
    Join Date
    Dec 2007
    Location
    India
    Posts
    155
    Hi use this..

    CEikButtonGroupContainer::Current();
    Cba()->MakeVisible(EFalse);

    md.kashif

  12. #12
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    Thanks for this md.kashif, but this doesn't hide the menu when it's displayed ... this only disables the menu for the current session or until it's enbaled back.

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  13. #13
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    skumar_rao, I can make the process async but I don't want that the user performs any action before the end of the process of MyFunc().

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  14. #14
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Are you talking about the menu or the cba buttons?
    Menu can be modified in DynInitMenuPaneL...

  15. #15
    Registered User Jeepy's Avatar
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    728
    I'm talking about the menu, I don't want to add or remove items (with DynInitMenuPaneL), I just want that the "window" containing the whole menu disappear directly when MyFunc() start because I want, in MyFunc(), to display a "floating window" with the message "Please wait..."; now, this floating window is behind the menu.

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

Page 1 of 2 12 LastLast

Similar Threads

  1. slide menu in j2me
    By afka in forum Mobile Java General
    Replies: 4
    Last Post: 2006-09-04, 09:10
  2. hide menu item!!
    By newbie2201 in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-12-14, 14:54
  3. Complie errors when trying to hide menu item
    By 0205592I in forum Symbian C++
    Replies: 4
    Last Post: 2005-03-29, 08:13
  4. Hide a menu item
    By Alicia_S60 in forum Symbian C++
    Replies: 7
    Last Post: 2005-02-07, 09:21
  5. How to manually show the menu?
    By jarjak in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-10-03, 14:52

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