Re: revHookBuildScriptEditorContextMenu

2013-06-29 Thread Peter Haworth
ndler expects things to work. Looks like using ptext works because the mouseDown handler uses pmodifiedtext if its dispatch of revHookBuildScriptEditorContextMenu is handled and ptext if it's not handled, and I think by passing the message, it eventually goes nowhere so returns unhandled. I thi

Re: revHookBuildScriptEditorContextMenu

2013-06-29 Thread John Craig
they both work as expected. HTH John. on revHookBuildScriptEditorContextMenu pObject, pSelectedText, @pText, pModifiedText put "Script Editor Customization" & LF & "-" & LF before pText pass revHookBuildScriptEditorContextMenu end rev

Re: revHookBuildScriptEditorContextMenu

2013-06-28 Thread Peter Haworth
Hi John, I was hoping that would work too, but it doesn't seem to in my testing. I set up two front scripts, each with a handler with a revHookBuildScriptEditorContextMenu in it and a pass statement at the end but only one of them was executed. I think it's because it's no

Re: revHookBuildScriptEditorContextMenu

2013-06-28 Thread John Craig
Hi, Pete. As long as you pass the message, the other frontscripts will also receive the message, so you're not limited. John. On 28/06/2013 19:54, Peter Haworth wrote: I would like to use the above to add some items to the script editor contextual menu but I see from a recent discussion that

revHookBuildScriptEditorContextMenu

2013-06-28 Thread Peter Haworth
I would like to use the above to add some items to the script editor contextual menu but I see from a recent discussion that only one plugin's front script will receive the message. Does anyone have any thoughts on a cooperative architecture that can be implemented now to allow multiple plugins to