×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Tampere Finland
    Posts
    76

    ListBox OfferKeyEventL

    Hi All,

    I created a listbox and some other controls in a view.

    I want to use listbox just to display the list. I dont want any scroll functionality to scroll.

    I dont want to ListBox to handle any Key Events. I need my other controls to handle them. But its not allowing me to do so.

    Is there any way by which I can just display the list but dont have all functionlities which listbox gives.

    If not able to understand please let me know I will try to explain it bit more.

    Thanks a lot.


    Cheers,
    Adi
    Cheers,
    Adi

    -------------------------------------------------------------------------------------------------
    I have had dreams and I have had nightmares. I overcame the nightmares because of my dreams…

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    98

    Re: ListBox OfferKeyEventL

    Hi,

    Have you set the EAknListBoxViewerFlags flag when you construct the listbox.
    The explanation of this flag is:
    A flag that may be used to create a specific listbox as a viewer. A viewer listbox allows the listbox contents to be viewed, without a selection possibility. The highlight indicator will not be present at the viewer listbox and the listbox will be viewed and scrolled in page-at-once manner. See the example below for the usage of this flag.
    Does this fulfill your needs?

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Tampere Finland
    Posts
    76

    Re: ListBox OfferKeyEventL

    Thanks a lot it helped me out to make it work.

    But Its showing me the first item selected always. Even with in the code I am not setting the SetCurrentItemIndex.

    How can I remove the selection from the listbox.
    Cheers,
    Adi

    -------------------------------------------------------------------------------------------------
    I have had dreams and I have had nightmares. I overcame the nightmares because of my dreams…

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    98

    Re: ListBox OfferKeyEventL

    Hi,

    I'm not sure what's the reason. Have you seen the list example application in the SDK?
    Which is availabe under something like
    C:\Symbian\8.1a\S60_2nd_FP3\Series60Ex\listbox
    (the path would be different depending on the version of sdk and your environment.)

    In this example it also shows the "view" listbox mode and no item is selected.
    Hope this helps.

Similar Threads

  1. Full screen listbox skin not rendered correctly
    By template60 in forum Symbian
    Replies: 2
    Last Post: 2007-09-11, 04:34
  2. ListBox Errors
    By javadi82 in forum Symbian User Interface
    Replies: 7
    Last Post: 2006-11-08, 13:29
  3. Query ~ Listbox | functional but no text
    By series60nubee in forum Symbian
    Replies: 5
    Last Post: 2006-03-24, 06:09
  4. Using a "custom" listbox in mobile s60
    By ctpthanh in forum Symbian User Interface
    Replies: 4
    Last Post: 2005-04-17, 14:46
  5. Hide Listbox not working with MakeVisible(EFalse)
    By Salvesh in forum Symbian User Interface
    Replies: 3
    Last Post: 2005-02-04, 05:04

Posting Permissions

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