Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DblClick in the Grid
Message
De
21/06/2000 17:59:47
 
 
À
21/06/2000 17:03:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00382904
Message ID:
00382929
Vues:
21
>I have a grid with the columns changing on the fly. Basically I show different lookup tables in a single grid. I would delete all columns, change the RecordSource and Refresh - all the columns and controls are recreated according to the new RecordSource table structure.
>
>Now, I desperately need to catch DblClick event on the grid, but as soon as I have columns, textboxes and other stuff inside - only innermost control recieves the event.
>
>Any quick & dirty way around it?

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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform