Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activex controls on modal forms, calling modal forms.....
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Activex controls on modal forms, calling modal forms.....
Divers
Thread ID:
00760144
Message ID:
00760144
Vues:
69
Can anyone translate the comments below? Its on the DBI-TECH.COM website and it discusses a problem where a modal form w/ an activex control calls another form w/ another activex control and that 2nd form's activex control's CLICK method doesnt fire.

I'm not sure i understand how to get around the problem.
Problem:  if I call a Modal form from an Active X control 
and this modal form has an Active X control placed on it, 
the click event on the modal form's Active X control doesn't 
get fired.

Solution: Fox pro has problem with Active X controls on modal 
forms called from other Active X controls. It also has problem 
with calling non-modal forms from modal ones.  Instead of 
calling a modal form from an Active X control, call a command 
button and from the command button call the modal form. Suppose 
you have ctButton on a form. In click event of ctButton put this 
line of code Keyboard '(ALT + E)' which will fire the click event 
of command button on the form- for example named Edit (In 
properties make E as hot key or short cut key- \<Edit). Put 
your code for the modal form in click event of command button 
named Edit here. Don't make the command button invisible. Put 
another Active X control on it- because Active X controls take 
display priority over native controls.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform