Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid class to know if any control is double clicked
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00971672
Message ID:
00971731
Views:
24
I am trying to capture a double-click inside a grid, right now the double click is not registered by the grid. This grid is dynamic so the columns are not in my control to program to put in the controls double-click.

The problem is that when you dblClick on a row in the grid that has data, it is the contained control's (the textbox) dblClick that fires. The only time the grid's dblClick fires is when you click on a row that does not have data.

The best thing you can do is to upgrade so that you can use BINDEVENT() as the others have suggested. The only alternative that I can think of off the top of my head without seeing any of your code, is to suggest that you create a custom text box class that has this code in its dblClick():
This.Parent.Parent.dblClick()
And when you set the ColumnCount of the grid, loop through the columns collection and programmatically add your custom text box and remove the native one.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform