×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Bangalore,India
    Posts
    129

    How to change text color in Numeric editor?

    Hi,

    i want the procedure to change the text color in numeric editor.
    By default it is displaying green.
    I want to change it to black

    Regards,
    Kusuma

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

    Re: How to change text color in Numeric editor?

    here's one old thread discussing the topic: http://discussion.forum.nokia.com/fo...ad.php?t=21964

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Bangalore,India
    Posts
    129

    Re: How to change text color in Numeric editor?

    Hi,

    This Thread was helpful
    http://discussion.forum.nokia.com/fo...d.php?t=128569

    Regards,
    Kusuma

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

    Re: How to change text color in Numeric editor?

    Quote Originally Posted by kusumat View Post
    Hi,

    i want the procedure to change the text color in numeric editor.
    By default it is displaying green.
    I want to change it to black

    Regards,
    Kusuma
    Below code can set text font and text color for CEikEdwin
    Code:
    void SetFont(const CFont* aFont,TRgb aFontColor)
    {
        if(!aFont)
            return;
    	
        TFontSpec fontspec = aFont->FontSpecInTwips();
        TCharFormat charFormat( fontspec.iTypeface.iName, fontspec.iHeight );
        TCharFormatMask charFormatMask;
        charFormat.iFontPresentation.iTextColor = aFontColor;
        charFormatMask.SetAttrib(EAttFontTypeface);
        charFormatMask.SetAttrib(EAttFontHeight);
        charFormatMask.SetAttrib(EAttColor); 
        
        CCharFormatLayer* formatLayer = CCharFormatLayer::NewL(charFormat,charFormatMask);
        iEditor->SetCharFormatLayer(formatLayer);
    }

Similar Threads

  1. how get the text from rich text editor in the dialog
    By manjunaths in forum Symbian User Interface
    Replies: 4
    Last Post: 2010-12-01, 13:14
  2. How to make text editor exactly like S60 default sms editor?
    By madsum in forum Symbian User Interface
    Replies: 9
    Last Post: 2009-11-10, 09:02
  3. Text Editor Problem ...Plzz Help
    By nisheethpandey in forum Symbian
    Replies: 6
    Last Post: 2009-02-18, 08:49
  4. Replies: 5
    Last Post: 2008-12-30, 18:46
  5. Form and Text Editor in Dialog
    By nutter420 in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-08-27, 21:13

Posting Permissions

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