Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dblclick in grid not working
Message
De
22/09/2011 13:24:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01524320
Message ID:
01524348
Vues:
50
Hugo,

suggestion - rather test for loObject.BaseClass - Columns may be subclassed



>If you have AllowCellSelection = .f. for the grid, you can use code similar to the following to determine which column has been clicked, dblclicked
>
>
>local laObjects(1), loObject, lcType
>
>Amouseobj(laObjects)
>
>loObject			= laObjects[1]
>
>if Type('loObject.Parent') = 'O'
>	loObject			= loObject.Parent
>endif
>
>if Type([loObject.Class]) = [C] and loObject.Class = 'Column'
>	do case
>		case loObject.ColumnOrder = 2
>		case loObject.ColumnOrder = 4
>		otherwise
>	endcase
>endif
>
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform