×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    3

    multiple custom items

    Hello everyone

    I have created a custom item. Implemented a itemstate listener.if I click on one button when my form is displayed
    I get an event,but when - click on the other button after pressing
    The otherone I no longer get an event. Problem is
    If I click on one custom item iam lo longer receiving events when I click on the other
    Button. For example if I click on button 1 will get an event,but when I click on
    Button2 I no longer get events for button2. Please help.

    orm = new Form("CustomItemMIDletExample");
    exit = new Command("Exit", Command.EXIT, 0);

    CustomItemExample C1 = new CustomItemExample("Enter");
    orm.append(C1);

    CustomItemExample C2 = new CustomItemExample("Exit");
    orm.append(C2);
    orm.setItemStateListener(lthis);

    public void itemStateChanged(Item item) {

    If (item == C1){do something}
    If (item == C2){other thing}}

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: multiple custom items

    In your CustomItemExample class, when do you call notifyStateChanged()?

Similar Threads

  1. How to add custom menu items in camera app?
    By JohnsonZ in forum Symbian
    Replies: 7
    Last Post: 2010-11-10, 06:56
  2. List items with custom content and layout
    By TomiS in forum Nokia N9
    Replies: 1
    Last Post: 2010-01-20, 09:24
  3. How to Adding custom menu items in MTM
    By icoming in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-05-12, 22:25
  4. Adding Items to Custom ListBox at runtime
    By nickyc in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-05-01, 14:15

Posting Permissions

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