Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Act on a DoubleClick event
Message
From
03/06/2005 21:31:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/06/2005 12:58:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01019702
Message ID:
01020179
Views:
22
>>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().
>
>And from my experience BindEvents() on every column's CurrentControl is the only way to do the doubleclick (or having a subclassed currentcontrol), because grid's doubleclick reacts only when the user dblclicks on a part of the grid where there are no rows. For all other cases, the dblclick is caught by the control in the cell - usually the textbox.

So BindEvents() seems to be the best solution, right? - I haven't used it yet, still doing serious stuff in version 6 :( at work they are not too keen to upgrade.
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