How do you open a window by Double Clicking an object?

I figured out how to open a property window by single clicking an image link. I used the Navigation “Open” window under the mouse->mouseClicked event. Can I make this work by doubleclicking instead?

Hello,

Yes. The “Navigation” action builder tab generated a Jython script for you. Switch to the “Script Editor” tab to view it. The script should look something like this:

fpmi.gui.openWindow('MyWindow')

(Where MyWindow is the name of the window you are trying to open). Change the script to this:

if event.clickCount == 2: fpmi.gui.openWindow('MyWindow')

To learn more about Mouse events, please see the
Technical Reference / Jython / Acion Scripts (Events)
section of the documentation.

Hope this helps,

1 Like