[Solved] Eventmethod related to 'item changed'

Creating a macro - Writing a Script - Using the API

[Solved] Eventmethod related to 'item changed'

Postby rutimike » Thu Mar 20, 2008 6:58 pm

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'

Postby rutimike » Fri Mar 21, 2008 1:22 pm

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'

Postby rutimike » Fri Mar 21, 2008 6:01 pm

It's ok. It works!!

Thank you very much; I appreciate.

Have a nice easter.

Roberto
rutimike
 
Posts: 5
Joined: Wed Mar 19, 2008 7:24 pm


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 8 guests