Information générale
Titre:
MS RTF Control Refresh Problem
Versions des environnements
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
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