Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbi-tech component tools and comparable products
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00846634
Message ID:
00847246
Views:
28
Hi Dan,

You have experienced the same exact problem that I have seen.

I have spent around 50 to 60 hours trying to come up with an elegant work around to this problem in my own controls. I was goint to create graphical controls for Textboxes and other controls just to avoid the issue in my Report Engine. Real Windows controls messes with VFP's sense of FOCUS. The problem is that VFP DOES NOT properly SETFOCUS back to their Window when you click on a VFP TEXTBOX control when the VFP FORM is hosting an ActiveX control that uses Windows Controls on it. I have shown this to some VFP Team members. I have played around with monitoring Windows Messages of my Host Container and trying to trap when it gets a MOUSE CLICK message posted to it. It is a real PITA though to have to do.

If you were to take the same RTF ActiveX control and drop it onto a VB Form it will work properly I bet. I have done testing of my controls in other languages and they work properly there. If you switch windows to another off screen Window or any other window in the OnFocus of the Textbox control, the VFP Textbox should regain focus and properly place the text into it. And yes, that is a PITA!

Who makes the RTF ActiveX control? I'm wondering if it was written in Delphi or not.

I did end up using the DBI Solutions:PIM calendar control but also ended up writing my own in Delphi one for a test to see how long it would take and two to make it work the way that I wanted it to work. When they shipped version 2.5 they actually renamed a property on the control and did not keep the old property name around which broke a lot of code for me which I had to go back in and fix. I told them that it's not very nice to do that with ActiveX controls! That is a major rule not to break. They did apologize though and promised not to do that again. <g>


> Hi Rich,

> clicking into a text box doesn't
> cause focus to return to VFP all the time. However, in VB it works great.

> Well, since you mentioned it, I've been having this problem on an RTF ActiveX I have.
> Cursor appears to have returned to a VFP
> textbox, but start typing and the text goes into the ActiveX. I started changing and adding
> things just using brute force, and eventually forced focus out, but I never nailed down any one good solutions to this. Is there one?

> BTW, so did you end up using the DBI controls?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform