Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activex Web Browser - can't enable
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01458067
Message ID:
01458181
Views:
50
>>>New day, new problem. I have an Active X IE browser control saved as a class and:
>>>.Navigate([About:Blank])
>>>.Document.DesignMode=[on]
>>>(other code left out here)
>>>
>>>If I drop it on a form and run the form it works. You can enter text, paste text with Ctrl+V and do the other normal things. I have a large program that starts with a form set and then creates all objects in the form from code with a ton of DEFINE CLASS...
>>>That has been working great for some time. However, when I add the IE browser control object from the class that works on a normal form the following things happen:
>>>You can CTRL+V to paste text.
>>>You can use shift + DownArrow to mark text and CTRL+B will bold the highlighted text.
>>>BUT
>>>You cannot mark text with the mouse.
>>>You cannot enter text with the keyboard.
>>>It's like the object is disabled but you can do the few things above.
>>>
>>>Signed,
>>>confused.
>>
>>Take this out
>>>.Document.DesignMode=[on]
>>
>>And try this instead.
>>This.Document.Body.contentEditable = .T.
>
>Mike, I tried and it changed some things but the main problem is still there. Sergey suggested that I not try to do it with a complex form so I will try a new approach, allowing the user to edit the HTML but in a separate form.
>I do really appreciate the help. Thanks.
'
Take a look at this. It is French but the code is all there.

http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000027
Previous
Reply
Map
View

Click here to load this message in the networking platform