Custom mouse double-click action
I've created a custom Splash actor that extends the Transformer actor. Currently when I double-click my custom actor, the Edit Parameters dialog box pops up. I want to replace that action with one that starts one of my applications.
Where or how in the code do I replace the standard Transformer mouse double-click action (or the mouse action listener) with my own?
Hi Ron,
I'm just starting to look into doing something similar. I've found this thread:
http://www.mail-archive.com/ptolemy-hackers%40eecs.berkeley.edu/msg01211.html
Checking commit log dates, I suspect that was for work on the DistributedCompositeActor, which has a custom dialog (DCAEditorPane) when you double-click on it. I haven't looked into how one would instead immediately launch their own external application, but at the very least this is an example of a custom dialog on which you could e.g. place a button to invoke your application.
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}Derik
Previously Ron Mak wrote:
I've created a custom Splash actor that extends the Transformer actor. Currently when I double-click my custom actor, the Edit Parameters dialog box pops up. I want to replace that action with one that starts one of my applications.
Where or how in the code do I replace the standard Transformer mouse double-click action (or the mouse action listener) with my own?