×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Permanently hiding control bar

    I am writing an app in which several views require full screen mode without control bar (CB).
    I use the following code in the view's DoActivate() and other parts of the code:

    Code:
    static_cast<CAbcAppUi*>(CEikonEnv::Static()->AppUi())->Cba()->MakeVisible(EFalse);
    icontainer->SetExtentToWholeScreen();
    I get the desired behaviour. However, whenever there is an event that requires CB, the CB is displayed and is left on after the event is over.
    For example, if a dialog or note appears, they turn on the CB. The CB is left on after the dialog / note is dismissed.
    Also, if the display goes off and back on, the CB appears.

    What do I have to do to make sure that CB is always hidden when a view is displayed and, if anything makes CB appear, it is goes off again after that event (dialog, note, etc) is over?
    ----------------------------------------------
    Every journey starts with a small step.

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: Permanently hiding control bar

    try to replace
    icontainer->SetExtentToWholeScreen();
    with
    icontainer->SetRect(CEikonEnv::Static()->AppUi()->ApplicationRect());

  3. #3
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: Permanently hiding control bar

    call DrawNow() in the FocusChanged() of icontainer

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Re: Permanently hiding control bar

    Thanks Jack,

    I added the following code to icontainer:

    Code:
    void CABCLogin::FocusChanged(TDrawNow aDrawNow)
    	{
    	SetRect(static_cast<CABCAppUi*>(CEikonEnv::Static()->AppUi())->ApplicationRect());
    	CCoeControl::FocusChanged(aDrawNow);
    	DrawNow();
    	}
    Now the CB does not appear anymore when the display goes off and back on.
    However, when the CB appears because of a Wait Dialog or a Note, it still remains on after the dialog / note is dismissed.

    While debugging, I can see that FocusChanged() is called after the dialog disappears but, for some reason, the CB is left visible. Any clue why?
    ----------------------------------------------
    Every journey starts with a small step.

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Re: Permanently hiding control bar

    Just to make it easier to see. The effect I get in my app is the one shown in the sequence of the attached p1 -> p2 -> p3

    p1 is the desired interface. User presses on restore button (recuperar). The app connects to the server. While connecting a wait dialog is shown (p2). When the app has finished with the server, the dialog disappears, but the app does not show in full display. The CB is left on screen (p3) until something happens that forces a refresh.

    I have added the code (FocusChanged()) in my previous post, also tried what is explained in

    http://wiki.forum.nokia.com/index.ph...ymbian_C%2B%2B

    and other things I have found in other post. But nothing works. If CB appears because of a dlg or a note, is it always left on screen until another action is done y user (like flipping the cover, accesing app's help, etc)

    What else should I try?
    Attached Images Attached Images
    ----------------------------------------------
    Every journey starts with a small step.

  6. #6
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: Permanently hiding control bar

    it seems that at the bottom of your app, there are some kinds of UI Controls which are partly overlaped buy CB. Have you called their DrawNow()?

Similar Threads

  1. Hiding virtual control pad in midlet?
    By markww in forum Mobile Java General
    Replies: 2
    Last Post: 2009-08-14, 16:01
  2. Tab Bar type of control
    By juannoguera in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-06-17, 09:36
  3. Problem about Progress Bar Control
    By tommylkc in forum Symbian User Interface
    Replies: 9
    Last Post: 2007-10-03, 04:38
  4. Progress bar control
    By sysctl in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-08-21, 07:10
  5. Replies: 2
    Last Post: 2007-07-24, 14:33

Posting Permissions

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