Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Richtext object moves top left 2

Status
Not open for further replies.

HOLIAM

Programmer
Sep 8, 2005
4
GB
I use VFP5 and my problem is with richtx32.ocx

I have a form on to which I have placed my richtext object.
All works fine and dandy. Change colour font, left right center
and so on.

My problem is that when I call up another form on top of the one with richtext on it, on closing the second form and returning back to the original form the richtext object moves to the top left of the screen. When I check the position it returns the orignial cordinates.

I've tried numerous things to resolve this problem.
Placing the object in a container. No good the object moves out of the container etc.

If I set the original screen locked no problem. But the second window if you move it cascades, way to messy.
Then unlock when the second closes.

Or make the richtext invisible open the second form and make it visible on return. Problem there is you can't see the the richtext object if part is still visible or you move the second form.

My main form is modless and and forms called from here are modal.


If anyone has come across this I would greatful for some tips.

Thanks you.
 
Holiam,

My suggestion is that the problem is a version issue. Many of the ActiveX controls that came with version 5.0 of VFP never really worked properly. Microsoft updated many of them for version 6.0 SP1. If you can get hold of a more recent version of the rich text control, I think that might solve the problem (but I can't be sure of that).

Let us know if you do manage to solve it.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thanks Mike. Version I have already is 6.00.88.4 which is the latest one I can find.

Your idea was correct as all I had to do was roll back one version to 6.00.8169 and he presto the control works fine.

Thank you very much again.

Holiam


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top