I need to add an event to the listbox so I know when the user selected an item.

I created a class called listBoxListener

class listBoxListener extends MouseAdapter
{
            public void mouseClicked(MouseEvent event)
        {
                    // do something
        }
}

//[[SPIDER_EVENT<this_onBeforeDisplayEvent>
public int this_onBeforeDisplayEvent(CSpDisplayEvent event)
{
        CSpListBox listCategory = (CSpListBox) getDisplayField("lbCategory");
        listCategory.addMouseListener(new listBoxListener);
        return (PROCEED);
}
//]]SPIDER_EVENT<this_onBeforeDisplayEvent>

The programs compiles and runs but the mouseClicked event is never executed.
Any help you can give me will be appreciated

Thanks
Jan


_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to