Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid class to know if any control is double clicked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00971672
Message ID:
00971737
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>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.
>
>Please advise.

Are the controls you put in subclassed ? If yes you can 'propagate' the clicks to the grid, ie on clicks the control calls a method of the grid if it detects that is in one

something like
=this.Parent.Parent.Cell_Click_Right(this)
Then in the grid method you can check the class/controlsource of the object passed and act accordingly

Even if the grid is dynamic, in the init or the RecordSource assign, you can loop through the columns, find out the type of the controlsource and subsitute your subclassed control depending on the type of the controlsource, add your own header class, ... Been doing this for ages

Also, I've stopped using the designer for grids a long time ago, think I must have one form left where I do so. When, programmaticchange, .... all call form methods. I put the code there
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform