Right Click Macro or Plugin Capability
Moderator: DPlotAdmin
Right Click Macro or Plugin Capability
David - have you ever considered making a macro call an option on the right click menu? I was thinking of several things I might like to see on a right click menu (like "Put Y reference Line Here", or "Label this point in my preferred format") and concluded that most of them are personal preferences that I wouldn't ask for.... But if one of the options on the right click was a sub-menu of macros or plugins, and you made some system variables available that the macro could access and operate on(e.g. "$MouseCurveIndex", "$MousePointIndex", "$MouseX", "$MouseY", etc), I could customize the right click myself. Perhaps Macros/Plugins to be made available for this feature could be identified by storing them in specific subdirectories to minimize the right click clutter? Thanks - R
- RAS
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
That's a very neat idea, will definitely look into it. As I'm sure you already thought about, it is complicated a bit by some commands only being applicable for some plot types and views. And the list of available commands might be so long that when setting this up you'd throw up your hands and say "Ya know what? I'll use the menus." But I can probably cull those down to... a hundred or so 

Visualize Your Data
support@dplot.com
support@dplot.com
Upon re-reading your reply, I'm not sure I communicated the concept clearly; my intent was that you'd present me with a list of user defined macros, not just "API" calls (which I agree would be very problematic).
The good part about this would be that if I build the Macros it would be my fault if the list got really long, not yours.... In general I would be building things that I use frequently with my plots. And you can't protect me from invoking a macro that doesn't make any sense (I can do that from the menus today). If you wanted to provide a capability to somehow only reveal macros appropriate to the current plot type, that would be great. But it would still fall to me to organize the macros I write sensibly, since you wouldn't know what I intended them to do.
Most what I'm contemplating would be shortcuts that would keep me from having to re-enter data (X or Y coordinates or targetting a specific point) or select options every time, so I wouldn't want to use the menus anyway.
Thanks - Richard
The good part about this would be that if I build the Macros it would be my fault if the list got really long, not yours.... In general I would be building things that I use frequently with my plots. And you can't protect me from invoking a macro that doesn't make any sense (I can do that from the menus today). If you wanted to provide a capability to somehow only reveal macros appropriate to the current plot type, that would be great. But it would still fall to me to organize the macros I write sensibly, since you wouldn't know what I intended them to do.
Most what I'm contemplating would be shortcuts that would keep me from having to re-enter data (X or Y coordinates or targetting a specific point) or select options every time, so I wouldn't want to use the menus anyway.
Thanks - Richard
- RAS