Information générale
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement