Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird behaviour of ActiveX controls
Message
From
01/04/2001 04:27:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Weird behaviour of ActiveX controls
Miscellaneous
Thread ID:
00490703
Message ID:
00490703
Views:
46
Hello everybody

I'd like to hear opinions from people who really knows how to create ActiveX controls (and who know how this works). I have the following problem.
I have a form with following code in INIT event:

thisform.olecontrol1.enabled=.f.
thisform.enabled=.f.

So, the form and the ActiveX are disabled and should not receive focus. When I open this form with other form (not disabled) with following code

do form form1 && disabled form
do form form2 && enabled form (without anything)

then for most of ActiveX installed on my computer (MS-made, third-party), I can click on active X area and the form becomes active!!! BUT! neither ActiveX nor the form don't generate any mouse* events. Nonetheless, the form with ActiveX becomes active.
However, I've found that a few of controls do not expose such a werid behaviour and behave exactly as I'd expect. IOW, they don't respond to mouse clicks and the form does not becomes active.

Can anyone step in and explain what is going on and how I can fix it

TIA
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Next
Reply
Map
View

Click here to load this message in the networking platform