--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
> 
> > local hTom = com.get_accessible_object(riched,  "dispatch")
> 
> No, just 
> 
> local hTom = com.get_accessible_object(riched)
> 
> assuming riched is an hwnd to a richedit control.
>

Thanks, the script works again.

I was able to implement some of what I wanted to do with out-of-process 
richedit using Undo(tomSuspend) and Undo(toReume) instead of nonfunctional 
BeginEditCollection and EndEditCollection. I think the reason we cannot most 
TOM methods is due to accessing an object instead of an interface. But as I 
said, for this particular task, I'm happy enough with what I have.

Summary --

When I use:

hTom.Undo(tomSuspend)
..do a bunch of edits..using sendmessages
hTom.Undo(tomResume)

none of the edits go into the undo buffer.

Doing an Undo after above, the Undo undoes the previous edit that took place 
prior to the tomSuspend. What I was hoping to do was to be able to Undo (with 
one Undo) all of the "bunch of edits". In fact the the "bunch of edits" are 
retained, and are not undoable. If there was no previous edit before "bunch of 
edits", using Undo does nothing.

Regards,
Sheri

Reply via email to