×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    43

    Making an item in an implicit list disabled

    Hello,
    im using an Implicit list and I want to make one of the items disabled – or at least look disabled.
    How can I do it? How can I change the color of the string to look disabled?

    Thanks!

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Making an item in an implicit list disabled

    hi jaaz,

    you have no much options, because implementation is (or was when LCD was gray looking squares) to provide contextual feedback (based on options like choice item, image) not on visual feedback or small color shade changes (which is nicely visible now in 256k mostly screens),
    however try working/experimenting with Fonts:
    Code:
    	setFont(int elementNum, Font font)
              Sets the application's preferred font for rendering the specified element of this Choice.
    that is basic method which is implemented in List as:
    Code:
    setFont
    
    public void setFont(int elementNum,
                        Font font)
    
        Sets the application's preferred font for rendering the specified element of this Choice. An element's font is a hint, and the implementation may disregard the application's preferred font.
    
        The elementNum parameter must be within the range [0..size()-1], inclusive.
    
        The font parameter must be a valid Font object or null. If the font parameter is null, the implementation must use its default font to render the element.
    
        Specified by:
            setFont in interface Choice
    
        Parameters:
            elementNum - the index of the element, starting from zero
            font - the preferred font to use to render the element 
        Throws:
            IndexOutOfBoundsException - if elementNum is invalid
        Since:
            MIDP 2.0
        See Also:
            getFont(int)
    hth,
    regards,
    Peter

Similar Threads

  1. Replies: 4
    Last Post: 2009-02-17, 21:24
  2. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  3. Replies: 2
    Last Post: 2004-12-18, 08:50
  4. binary setting list item - urgent
    By murmur20 in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-12-07, 02:17
  5. List item selection
    By SanDan in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-06, 10:57

Posting Permissions

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