Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS RTF Control Refresh Problem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Title:
MS RTF Control Refresh Problem
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01316417
Message ID:
01316417
Views:
78
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
Map
View

Click here to load this message in the networking platform