Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENT() with _SCREEN.CLICK
Message
De
16/09/2009 15:46:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01424780
Message ID:
01424790
Vues:
31
I want the form to always be active, even if the user accidentally clicks on the _SCREEN region.
It's confusing to the user if you don't know what's happening.
We have a couple of forms displayed and wherever we can, we re-activate the main form whenever the user clicks
anywhere else.


>Howard,
>
>What exactly you're trying to achieve? Form's deactivation when you click OUTSIDE of it is normal, IMHO.
>
>>When I click on a screen region owned by _SCREEN, my app's form is deactivated.
>>This behavior appears to be different with VFP9 than with VFP5.
>>
>>I tried using BINDEVENT to capture the mouse click and activate my form:
>>BINDEVENT(_SCREEN,"Click",THISFORM,"Click")
>>
>>However, I get this error upon entry of my form's click event handler:
>>Error number: 31
>>Invalid subscript reference.
>>Error occurred at line 1 in PROCEDURE MYFORM.CLICK
>>
>>I've tried binding the event to a method, but get an error saying there is no PARAMETERS statement.
>>I assume there are some coordinates being passed somehow but don't see them when I create
>>an event handler for my Click event.
>>
>>???
>>
>>Thanks,
>>Howard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform