×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    20

    Question Problem with CAknNavigationDecorator and scroll buttons

    Hi,

    I'm using S60 2nd Edition FP3 and I want to replace the current navigation pane with a small text label and two scroll buttons (just like the one in the calendar). I'm using the following code (I've removed all CleanupStack directives for readability):

    Code:
    CAknNavigationControlContainer* naviPane = (CAknNavigationControlContainer*) StatusPane()->ControlL(TUid::Uid(EEikStatusPaneUidNavi));
    naviPane->Pop();
    
    _LIT(KTest, "24/09/81");
    CAknNavigationDecorator* deco = naviPane->CreateNavigationLabelL(KTest());
    deco->MakeScrollButtonVisible(ETrue);
    deco->SetScrollButtonDimmed(CAknNavigationDecorator::ELeftButton, EFalse);
    deco->SetScrollButtonDimmed(CAknNavigationDecorator::ERightButton, EFalse);
    naviPane->PushL(*deco);
    But unfortunately, no scroll buttons are displayed, only the label is displayed correctly. Maybe it's just trivial but I can't see any reason for this?

    Best regards,
    Andreas

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    20

    Lightbulb Re: Problem with CAknNavigationDecorator and scroll buttons

    I think I've found the problem: the navigation decorator (tab group) I wanted to replace was created by resource. After "hard-coding" the creation without using resources, the arrows in my other decorator have become visible. It's sounds a little bit strange, but now it works for me. Hopefully this will help everybody facing the same problem in the future!

Posting Permissions

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