Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird behaviour of ActiveX controls
Message
De
01/04/2001 04:27:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Weird behaviour of ActiveX controls
Divers
Thread ID:
00490703
Message ID:
00490703
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform