Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DblClick in the Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00382904
Message ID:
00382976
Views:
21
Since this is a common requirement for grids, it's better to build a special subclass of the textbox that has the This.Parent.Parent.DblClick() in its DblClick(). Then use that class for each grid column, and you won't have to remember to duplicate this code in each textbox.

>
>Put your code in the Grid.DblClick method. Now you need to put a reference to that in all the places you need it. For Example:
>
>In each columns' TextBox.DblClick you'd put this.Parent.Parent.DblClick()
>
>The TextBox has as it's Parent the Column, which has as it's Parent the Grid.
>
>If you need it on the Header, you'd do a similar thing, but you only need 1 parent reference, this.Parent.DblClick()
>
>HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform