×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Germany
    Posts
    94

    Cba buttons not redrawing

    In my application on the Nokia 3650 the softkey button text ( Cba buttons ) is not updated in time when the menu button text is changed after a menu change or opening of a menu pane. It can take up to 5 seconds before the text gets updated. I tried DrawNow() and DrawDeferred() on iEikonEnv->AppUiFactory( )->Cba( ) but no success. I also tried to flush the window server... also no success. Updating remains totally unpredictable.
    In my app I've got a periodic timer called every 15 milli seconds and a second thread working at high priority, but I think there should be enough cpu time left to update the button text.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    Hi

    I think you should do some experiments with increasing the time for your timer or decreasing the priority for your tread, at least for me it sound that your system doesn't have enough time to do the re-drawing, since the drawing is working on lower priority than your busy working tread.

    yucca

  3. #3
    Nokia Developer Expert
    Join Date
    Feb 2005
    Location
    India
    Posts
    209

    Re: Cba buttons not redrawing

    Yucca,,

    " Options " menubar not displaying while calling view for the second time from anotherclass

    code:
    CMultiViewsView1* view2;

    view2 = CMultiViewsView1::NewL();
    view2->DeleteContainer(); // deletes the container of the view class and creates a new one



    in view class
    void CMultiViewsView1:eleteContainer()
    {

    if (iContainer)
    {
    AppUi()->RemoveFromStack(iContainer);
    delete iContainer;
    iContainer = NULL;

    }
    iContainer = new (ELeave) CList4Container();
    iContainer->SetMopParent(this);
    iContainer->ConstructL( ClientRect() );
    AppUi()->AddToStackL( iContainer );

    }


    Here "options" menubar is not redrawn even if the menu items exists.

    Thanks.

Posting Permissions

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