Question
Catching Events with ACL
Hello again
. Sinceit went so good last time, I'm inventing new problems to solve. Joking, the company in the current project is doing that
. The problem stats as follows. Within XML Documents we have a dialog that appears on the right click, the contained menu entries are calling the extensions that I am currently working on. As the menu entries can be valid or invalid ( one extension works on a subtree starting with LIST, the other one does not work on lists, for example. ) I have the task to find a way to make the menu entries greyed out my the currently marked content in the document. So far the plan for battle. I know how to get the currently marked selection, or the point where the cursor resides, I have found out how to enable and disable the entries in the EditPopup-menu, and I have an idea how to model the logic for deciding which menu item can be active on which selection. Just one part is missing. In order to process all that, I need an event, and I thoughtabout catching the right click event, do some preprocessing and modifying to the menu and then let the menu appear, and as you can image : I have no clue how to catch the right click event. I have read so far through some parts of the Documentation, found function calls to define callbacks but none seems to be usable for mouse events, and I have found a W3C MouseEvent Interface within the Arbortext programming guide, but so far stillno idea about how to do this. So I am asking here : Has anyone done this before ? Thank you - again - for your help ! greetings ! roland
. Sinceit went so good last time, I'm inventing new problems to solve. Joking, the company in the current project is doing that
. The problem stats as follows. Within XML Documents we have a dialog that appears on the right click, the contained menu entries are calling the extensions that I am currently working on. As the menu entries can be valid or invalid ( one extension works on a subtree starting with LIST, the other one does not work on lists, for example. ) I have the task to find a way to make the menu entries greyed out my the currently marked content in the document. So far the plan for battle. I know how to get the currently marked selection, or the point where the cursor resides, I have found out how to enable and disable the entries in the EditPopup-menu, and I have an idea how to model the logic for deciding which menu item can be active on which selection. Just one part is missing. In order to process all that, I need an event, and I thoughtabout catching the right click event, do some preprocessing and modifying to the menu and then let the menu appear, and as you can image : I have no clue how to catch the right click event. I have read so far through some parts of the Documentation, found function calls to define callbacks but none seems to be usable for mouse events, and I have found a W3C MouseEvent Interface within the Arbortext programming guide, but so far stillno idea about how to do this. So I am asking here : Has anyone done this before ? Thank you - again - for your help ! greetings ! roland
