Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor LAS_VEGAS's Avatar
    Join Date
    Sep 2006
    Posts
    79
    Hi,
    I'd like to change menu pane text color & background color. I'm able to change the color of many things but still I have some problems. Here is a screenshot of how my menupane looks.
    http://img142.imageshack.us/my.php?i...pupmenunp2.jpg

    I'm able to change the highlight color(green in the scren shot), menubar background color(blue in the screen shot), and text color for softkeys(when there is no pop up menu, not shown in the screenshot)

    And as suggested in following threads, I tried to use OverrideColorL but it only changes the shadow of the menu pane(grey area in the screenshot)
    http://discussion.forum.nokia.com/fo...ad.php?t=82297
    http://discussion.forum.nokia.com/fo...ad.php?t=71747
    http://discussion.forum.nokia.com/fo...d.php?t=113239

    Code:
    void CMyVew::DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane) {
    aMenuPane->OverrideColorL(EColorMenuPaneBackground, KRgbGrey);
    aMenuPane->SetRect(aMenuPane->Rect());
    aMenuPane->HandleResourceChange(KEikColorResourceChange);
    
    }
    I also tried setting CCoeBrushAndPenContext but it had no effect.
    Code:
    void CMyVew::DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane) {
    			
    	CCoeBrushAndPenContext* brushAndPenContext = CCoeBrushAndPenContext::NewL();
    	CleanupStack::PushL(brushAndPenContext);
    	brushAndPenContext->SetBrushColor(KRgbGray);
    	brushAndPenContext->SetPenColor(KRgbGray);
    	aMenuPane->SetControlContext(brushAndPenContext);
    	aMenuPane->SetRect(aMenuPane->Rect());
    	aMenuPane->HandleResourceChange(KEikColorResourceChange);
    	CleanupStack::PopAndDestroy();
    }
    Does anyone how to do this, or is this possible at all?

  2. #2
    Registered User dinesh547's Avatar
    Join Date
    Nov 2007
    Posts
    384
    Hi All,

    I am facing the similar issue.I know this post is too old but if anyone has a solution please share.

    I want to change the color of menubar and menupane to red color. But calling aMenuPane->OverrideColorL(EColorMenuPaneBackground, KRgbGrey); in DynInitMenuPaneL has no affect on the color of menu. i am on 3rd edition fp1 sdk.

  3. #3
    Regular Contributor nishantanindya's Avatar
    Join Date
    Jan 2012
    Posts
    139
    did any one find solution... I am also facing the same problem....:(

Similar Threads

  1. AknLayoutUtils::LayoutEdwin skin color for text problem
    By tcalamawy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-11-28, 21:46
  2. Topwindow background color
    By ikaroweb80 in forum Python
    Replies: 15
    Last Post: 2008-04-18, 11:32
  3. How to set BackGround color?
    By thilsen_06 in forum Symbian C++
    Replies: 7
    Last Post: 2007-02-08, 10:42
  4. How to extract text color defined by skin ?
    By saurbh_g in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-04-05, 14:03
  5. Replies: 1
    Last Post: 2004-11-25, 03:42

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