Re: revHookBuildScriptEditorContextMenu

2013-06-29 Thread Peter Haworth
Hi John, You're right, that works just fine. Took me a while to figure out why but then I noticed that you are setting the ptext parameter, and defining it by reference whereas I was using the pmodifiedtext parameter by reference (which seems to be the way the script editor mousedown handler expec

Re: revHookBuildScriptEditorContextMenu

2013-06-29 Thread John Craig
I just double checked with community 6.0.2 and it works fine. Set up 2 frontscripts with something like the foloowing code. Stick a slightly different message in each one for identification of which is which. When right clicking in the editor, you'll see both customizations are there and they

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 not a built-in LC messag

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