cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

capturing menu item events

ebenton
1-Newbie

capturing menu item events

Greetings,
A colleague of mine is attempting to do some things with Arbortext
Editor, and he has a question. He has already posted it on the PTC forum
and he asked me to forward this question to you all.


"I have successfully used the IDOMEventTarget and IDOMEventListener to
capture window and document events in C# but have not been able to do
the same with application events and have not figured out how to capture
menu item events (e.g. File\Exit, File\Save).

Can anybody help with this?"
2 REPLIES 2

If I understand your question right, the way we do this is by basically overriding the ACL function that you want to control (e.g. fileclose for File->Close or function activeComposePDF() { return 0; } would disable composing to PDF in the Print Preview window and making it do what you want instead. Unfortunately finding the names out for things is not always easy, in-depth digging in the ACL Programmer's Guide or even contacting PTC may be necessary.

On Thu, Apr 24, 2008 at 8:18 AM, Mike R <mramshaw@lso.idaho.gov> wrote:

> If I understand your question right, the way we do this is by basically
> overriding the ACL function that you want to control (e.g. fileclose for
> File->Close or function activeComposePDF() { return 0; } would disable
> composing to PDF in the Print Preview window and making it do what you want
> instead. Unfortunately finding the names out for things is not always easy,
> in-depth digging in the ACL Programmer's Guide or even contacting PTC may be
> necessary.


I use this from the command line to identify what is going on behind menu
selections:

response(menu_cmd('File.Print'))

But I'm guessing that's not what Ed's friend needs ...

--
Paul Nagai
Announcements