×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Amsterdam, NL
    Posts
    53

    how can i find the highlighted item in a multiple list?

    Hi.

    I need to know at some point which element is highlighted in a multiple list. It seems like I cannot use the getSelectedIndex() method as it always returns -1. What can I do instead? Any ideas?

    thanx,
    xarris_

  2. #2
    Super Contributor
    Join Date
    Feb 2006
    Posts
    689

    Re: how can i find the highlighted item in a multiple list?

    Hi,
    Lists in MULTIPLE mode return -1 for getSelectedIndex, because more than one item can be selected at any given time. Use getSelectedFlags to return the selected state of each item into an array you supply:
    Thanks
    Soku

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Amsterdam, NL
    Posts
    53

    Re: how can i find the highlighted item in a multiple list?

    This is not what i want to do...I want to perform some action on the highlighted item, no matter whether it is selected or not, or if any other item is selected.

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: how can i find the highlighted item in a multiple list?

    Hi xarris_,

    The only way I know is the same as reported by soku, unfortunately. Please let us know of any workaround then...

    Kind regards,
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. how to make a multiple selection list?
    By ddhungry in forum Symbian User Interface
    Replies: 17
    Last Post: 2008-10-19, 13:55
  2. line break character for List Item
    By rab_gandhi in forum Mobile Java General
    Replies: 0
    Last Post: 2005-04-19, 12:31
  3. select the last item in the list programmatically?
    By advocatee in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-12-02, 02:52
  4. How to mark an item in a markable list
    By zzeric in forum Symbian
    Replies: 0
    Last Post: 2003-03-06, 11:12
  5. how to create a multiple selection list?
    By ddhungry in forum Symbian
    Replies: 0
    Last Post: 2002-11-15, 06:46

Posting Permissions

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