Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX control refference stored in _VFP.ActiveForm?!
Message
 
 
To
08/07/2002 10:28:22
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00676112
Message ID:
00676233
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
Zlatin,

Since the ActiveX is hosted by it's own window I think that's why you are seeing the effect you are seeing.

There's nothing you can do about that behavior.

You can instead put more intelligence in your code that's using ActiveForm and test to see if you really have a VFP form or not.

>We have developed (derived from VB native image control) own ActiveX control to handle images in VFP (not-isometric streching, cut/copy/paste and other functions not available in standard ActiveX controls.)
>
>My question is related to the way FoxPro determines which form is the active one (the value of property ActiveForm).
>
>Each time we refer to this property from the Activate event of the form with this ActiveX on it, its value is correct - ActiveForm returns refference to thisform (which is Activated).
>
>However as soon as the ActiveX control gets the focus the property ActiveForm is no longer valid - it contains reference to the OleControl object on the form.
>
>So once again - what should be done to prevent this behaviour from the ActiveX? How is the activeform property of the application object set?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform