General XMetaL Discussion
Baron July 23, 2010 at 8:07 am
new beacon event (xmax api activeX)July 23, 2010 at 8:07 amParticipants 3Replies 4Last Activity 12 years, 2 months ago
I'm working on the integration of XMetal XMax' activeX in IE.
I would like to know if is it possible to listen to the event : ” The author is openening a new beacon, named xxx” ?
Thank you for reading.
PS : I have some difficulties to find the documentation, where is it supposed to be ?Derek Read July 23, 2010 at 5:30 pm
Reply to: new beacon event (xmax api activeX)July 23, 2010 at 5:30 pm
I'm not familiar with the term “beacon”. Can you please point me to something that defines it, or perhaps describe in more detail what you mean by this.
Documentation for XMAX APIs, including all events, are included in the Programmers Guide. The Programmers Guide is installed when you install XMetaL Developer, the product we sell that is used to create customizations for XMAX and XMetaL Author. If you do not have XMetaL Developer you can find documentation online here:Baron July 26, 2010 at 8:52 am
Reply to: new beacon event (xmax api activeX)July 26, 2010 at 8:52 am
Thank you for your answer.
The term “beacon” is a bad traduction. I gonna explain it :
I would like to receive the event when the author is closing a new “tag” like :
(the red char symbolize the event)
Anyway, thank you for the links, they are usefull as I don't have XMetal Developer installed.Derek Read July 26, 2010 at 9:29 am
Reply to: new beacon event (xmax api activeX)July 26, 2010 at 9:29 am
Given your description, I assume you want to handle some special case when the user is working in Plain Text view?
There are no events triggered when you close a tag. You could try to write a script that detects which view the user is in and then deals with that specific character (greater than symbol). You would then assign the greater than symbol as the shortcut key for the macro containing the script. When that key is pressed the script will run. You will then need an if…then statement to decide what to do:
Use the ActiveDocument.ViewType property to detect which view the user is in.
1) If the user is editing in Plain Text view then you can assume they are closing a tag and you would do what you are planning to do in your script. To detect if this is specifically a closing tag (and not an opening tag or an empty tag) would require some more complicated script and that seems likely to be extremely hard to capture and I suspect it might be so complicated that you might as well call it impossible (the amount of script required would be extensive to capture everything).
2) If the user is editing in Tags On or Normal view then you would call this:
- You must be logged in to reply to this topic.