Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Act on a DoubleClick event
Message
De
03/06/2005 08:58:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01019702
Message ID:
01019799
Vues:
26
In the past, I have placed code in the DoubleClick() Event of every contained object (Grid.Column1.Text1, for example), to carry out the appropriate action. I think that in VFP 8 and later, you can do this programmatically, with BindEvents().

>Hi.
>Is there any way , within a form, of running code on a DoubleClick (or Return Key) event thats pressed from within a grid.
>I want to exit the form if either the DobleClick or the Return key is pressed inside in the grid.
>
>Now, I know I can do this on the the control within the Grid, but this means changing all my base classes and I dont want to do that.
>Nor is it that easy to 'over-ride' the doubleclick event of the control in the grid as the fields within the Grid are data driven from my framework (i.e. The Grid itself does not have any controls.. these are added programaticlly)
>
>Idealy what I would like to be able to do is something like:
>
>On Key DoublClick (In the Grid) Or On Key Return(in the Grid)
> SomeCode Here
> Thisform.Release
>
>Any help appreciated
>
>Regards,
>Gerard
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform