Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User selenatan's Avatar
    Join Date
    Jun 2007
    Posts
    12
    Can I get the default font color from form items like textfield/list?

    I am creating a customitem with some text. i need to get the color so that they will all have the same font color.

  2. #2
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    Check the Display.getColor() method call

    public int getColor(int colorSpecifier)

    Returns one of the colors from the high level user interface color scheme, in the form 0x00RRGGBB based on the colorSpecifier passed in.

    Parameters:
    colorSpecifier - the predefined color specifier; must be one of COLOR_BACKGROUND, COLOR_FOREGROUND, COLOR_HIGHLIGHTED_BACKGROUND, COLOR_HIGHLIGHTED_FOREGROUND, COLOR_BORDER, or COLOR_HIGHLIGHTED_BORDER

    Returns:
    color in the form of 0x00RRGGBB

    Throws:
    IllegalArgumentException - if colorSpecifier is not a valid color specifier

    Since:
    MIDP 2.0

    Hartti

Similar Threads

  1. How to get the name of the used font
    By chrishawaii in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-06-22, 06:55
  2. Replies: 7
    Last Post: 2006-06-08, 22:17
  3. Font size of list items in listbox
    By say2paul in forum Symbian C++
    Replies: 3
    Last Post: 2006-05-16, 17:57
  4. New font 6600
    By hamishw in forum Symbian C++
    Replies: 0
    Last Post: 2005-04-10, 10:59
  5. font problem
    By lczgn in forum Symbian
    Replies: 0
    Last Post: 2003-05-19, 04:00

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