Discussion:
DHTML.OCX not behaving in VFP7 - Urgent
(too old to reply)
rob
2003-07-18 09:58:22 UTC
Permalink
HI all,

I'm using the Microsoft DHTML.OCX in a VFP7 app.
When you are editing text within the control and then click onto another
control on the form and start typing the text is placed within the DHTML
control.

This is not good!

I've tried setting _vfp.autoyeild=.f. but it makes the app hang when I open
a form with the control on it.

Please please please can somebody help

Rob
Rick Strahl [MVP]
2003-07-18 21:26:32 UTC
Permalink
The control is pretty unstable in VFP and most other environments. Microsoft
has discontinued work on this control and it will likely continue in its
dismal state.

You might want to look at the Web browser control's option to edit text.
I've had much better luck with it although it's more work to modify text
within the document and lacks some of the design features (like draging
things around like resizing etc.). However, it looks like this is much more
stable.

You can get at it via the Document.DesignMode = "on" then using Ranges to
modify the document programmatically.

+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
Post by rob
HI all,
I'm using the Microsoft DHTML.OCX in a VFP7 app.
When you are editing text within the control and then click onto another
control on the form and start typing the text is placed within the DHTML
control.
This is not good!
I've tried setting _vfp.autoyeild=.f. but it makes the app hang when I open
a form with the control on it.
Please please please can somebody help
Rob
rob
2003-07-21 08:36:09 UTC
Permalink
Rick,

I thought as much! :o( I've spent quite some time getting a editor together
with that dhtml control.
I've managed to find a thread on the universal thread regarding the dhtml
control regarding the onmousedown and onblur events. I'll give that a try
and then move along to the webbrowser control after, as there would be a
heck of a lot of recoding required. I mean I can't see a DOM property!

Anyway, many thanks for your advice

Happy waving!

Rob
Post by Rick Strahl [MVP]
The control is pretty unstable in VFP and most other environments. Microsoft
has discontinued work on this control and it will likely continue in its
dismal state.
You might want to look at the Web browser control's option to edit text.
I've had much better luck with it although it's more work to modify text
within the document and lacks some of the design features (like draging
things around like resizing etc.). However, it looks like this is much more
stable.
You can get at it via the Document.DesignMode = "on" then using Ranges to
modify the document programmatically.
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
Post by rob
HI all,
I'm using the Microsoft DHTML.OCX in a VFP7 app.
When you are editing text within the control and then click onto another
control on the form and start typing the text is placed within the DHTML
control.
This is not good!
I've tried setting _vfp.autoyeild=.f. but it makes the app hang when I
open
Post by rob
a form with the control on it.
Please please please can somebody help
Rob
Loading...