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
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01316417
Message ID:
01316419
Views:
15
>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@

There are often problems with RTF control because it has its own window.
Try

ThisForm.oleRTF.object.Refresh()

Good Luck
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform