Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Act on a DoubleClick event
Message
From
03/06/2005 08:58:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01019702
Message ID:
01019799
Views:
25
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform