Thanks, Clay. Thanks, Chris.
In package _dcam, function editfilehook() PREPENDs an insert_tag callback.
Even though I prepend, DLM pre-prepends.
Also, in looking at DLM's insert_tag callback function
(_linkdlgmods::insert_tag_cb) itself, I can see that it tests protectdcam.
If off, it does not pop the dialog. So, I'll need to get my editinit ACL to
run last ... gaming the timing to see if I can out-pre-pre-pend. Failing
that, I may have to overwrite _dcam() removing the prepend of DLM's
insert_tag callback. In either case, instead of or in addition to I'll need
to set protectdcam=off.
Any thoughts about getting my editinit acl adding the callback to be the
last callback so my PREPEND wins?
On Wed, Feb 27, 2013 at 12:52 PM, Chris Nitchie <
chris.nitchie@oberontech.com> wrote:
> Paul,
>
> If I remember correctly (it's been a while), DLM itself uses an insert_tag
> callback to trigger itself. Have you tried installing your callback with
> the 'prepend' parameter to see if you can get yours to be fired first?
>
> I just saw Clay's response, and he's right, there may be an answer there.
> In particular, check out the DLMLinkCreated event. That will fire when DLM
> instantiates a new link object, but, I think, before the dialog appears.
> The only problem is that it isn't cancelable, and so might not work for
> what you want.
>
> Chris
>
>