Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX control refference stored in _VFP.ActiveForm?!
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00676112
Message ID:
00677125
Views:
30
>
>David,
>
>Yuppers! I've found that some ActiveX controls (like the ListView and TreeView) don't affect the ActiveForm property. Others, such as the MS Toolbar, do and end up as the ActiveForm.
>
>My hunch (and it's no more than that) is that it has to do with the nature of the control itself. Taking the Toolbar as an example, the most significant difference that I see is that the icons shown on the buttons can change depending on whether or not the button is disabled, enabled, "hot" (mouse over them), or "cold" (enabled but mouse not over them). The guess is here that this is goofing up the normal message processing that occurs otherwise.
>
>The only (and I must admit, rather tenuous) workaround I've implemented is to check the ActiveForm against the first form in the Forms collection.

You might be close to the reason... I cannot remeber where I have seen it but AFAIR VFP has problems with ActiveXs that provide containership. Because VB Picturebox provides containership and we have derived this control in our ActiveX I suppose that this may be the reason for this strange bahaviour.

Kind Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform