delphi
handling dblclicked string_grid cell
knoen
2013. 5. 23. 22:45
Use the onDblClick event. To figure out the cell clicked on you do this in
the handler: var
pt: TPoint;
acol, arow: Integer;
begin
GetCursorPos( pt );
pt:= (Sender as tstringgrid).ScreenToClient( pt );
tstringgrid(sender).MouseToCell( pt.x, pt.y, acol, arow );
This works even if the click is on a fixed cell.