Board index » delphi » TEmbeddedWB & undo

TEmbeddedWB & undo


2003-09-11 03:29:48 AM
delphi31
I am using TWebBrowser as an HTML editor. To make life easier, I tried
substituting TEmbeddedWB for TWebBrowser. Most things seem to work fine so
far, with the exception of Undo. With TWebBrowser Ctrl+Z does Undo changes;
with TEmbeddedWB cursor only movement is undone but not text/formatting
changes. This is even true doing it programmatically with either
"IOleCommandTarget.Exec(nil, OLECMDID_UNDO, 0, vaIn, vaOut)" or
"IHTMLDocument2.execCommand('Undo', False, Unassigned)", so it doesn't seem
to be just an issue with keystroke handling.
Any ideas why TEmbeddedWB would disable Undo?
I'm using D5, NT4 SP6, and IE6 SP1.
Thanks
Jim
 
 

Re:TEmbeddedWB & undo

Hi Jim,
On Windows98 with IE6 SP1 Q813489,Q818529,Q822925 i can not reproduce the
problem.
Quote
I am using TWebBrowser as an HTML editor. To make life easier, I tried
substituting TEmbeddedWB for TWebBrowser. Most things seem to work fine
so
far, with the exception of Undo. With TWebBrowser Ctrl+Z does Undo
changes;
with TEmbeddedWB cursor only movement is undone but not text/formatting
changes. This is even true doing it programmatically with either
"IOleCommandTarget.Exec(nil, OLECMDID_UNDO, 0, vaIn, vaOut)" or
"IHTMLDocument2.execCommand('Undo', False, Unassigned)", so it doesn't
seem
to be just an issue with keystroke handling.

Did you modify the TEmbeddedWB.Exec method ?
Quote
Any ideas why TEmbeddedWB would disable Undo?

I'm using D5, NT4 SP6, and IE6 SP1.

Thanks
Jim