General information
Title:
MS RTF Control Refresh Problem
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@
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only