Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dblclick in grid not working
Message
From
22/09/2011 13:24:50
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01524320
Message ID:
01524348
Views:
49
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform