Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS RTF Control Refresh Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Titre:
MS RTF Control Refresh Problem
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01316417
Message ID:
01316417
Vues:
79
I'm using the MS Rich Text control and in certain situations, I have to call the form that it's on with a NOREAD statement so that the form doesn't receive focus. The weird thing is, when I do this, the control displays nothing. If I issue an explicit SETFOCUS() to the control, it refreshes fine and displays the contents. The problem is issuing the SetFocus() causes the form to get focus, which I don't want.

I've tried all of the following statements in the form's init, but no luck.

ThisForm.oleRTF.Visible = .T.
=ThisForm.oleRTF.Refresh()
ThisForm.oleRTF.GotFocus()
ThisForm.oleRTF.Locked = .F.
ThisForm.oleRTF.Locked = .T.
=ThisForm.oleRTF.Change()
ThisForm.oleRTF.ZOrder(1)
ThisForm.oleRTF.ZOrder(0)
ThisForm.oleRTF.KeyPress()

Any ideas?

Thanks!

-m@
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform