Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Act on a DoubleClick event
Message
 
To
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:
01020316
Views:
21
Hi All
Thanks for your replies.

My main problem now seems to be getting VFP to recognise say a 'DblCLICK'
in the grid as being a Grid Event, and not the undrlying text box where I click.

If I doubleclick on a grid, the Grid DblClick event fires, but only when I click in an area on the gris where there are no controls.
If I click anywhere else, it would seem that the text box dblclick event fires but not the Grid DblClick event.

Is there any way of 'MAKING; the Grid Dblclick event fire (NOT the Text Box)
I have'nt experimented with the BINEVENTS but I suspect the same would apply.

Regards,

Gerard






>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform