×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    12

    Getting default font color from Item

    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
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Getting default font color from Item

    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. [announce] full screen dot amtrix scroller
    By xchip in forum Symbian
    Replies: 7
    Last Post: 2006-06-08, 22:17
  3. Font size of list items in listbox
    By say2paul in forum Symbian
    Replies: 3
    Last Post: 2006-05-16, 17:57
  4. New font 6600
    By hamishw in forum Symbian
    Replies: 0
    Last Post: 2005-04-10, 10:59

Posting Permissions

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