[Solved] Eventmethod related to 'item changed'

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
rutimike
Posts: 5
Joined: Wed Mar 19, 2008 7:24 pm

[Solved] Eventmethod related to 'item changed'

Post by rutimike »

I need to associate an event to a list box; I want to associate the event to the change of the control element.

Does someone know what I must specify as EventMethod? (actionPerformed and itemstatechanged don't work as I desire).

Thanks
roberto
Last edited by rutimike on Fri Mar 21, 2008 6:08 pm, edited 1 time in total.
rutimike
Posts: 5
Joined: Wed Mar 19, 2008 7:24 pm

Re: eventmethod related to 'item changed'

Post by rutimike »

Try this:
oEvents(0).ListenerType = "XItemListener"
oEvents(0).EventMethod = "itemStateChanged"

instead of:

oEvents(0).ListenerType = "XActionListener"
oEvents(0).EventMethod = "actionPerformed"

ciao
michela :mrgreen:
rutimike
Posts: 5
Joined: Wed Mar 19, 2008 7:24 pm

Re: eventmethod related to 'item changed'

Post by rutimike »

It's ok. It works!!

Thank you very much; I appreciate.

Have a nice easter.

Roberto
Post Reply