TLama

Untitled

Mar 21st, 2013
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.21 KB | None | 0 0
  1. procedure TForm1.StringGrid1DblClick(Sender: TObject);
  2. var
  3.   R: TRect;
  4. begin
  5.   R := StringGrid1.CellRect(StringGrid1.Col, StringGrid1.Row);
  6.   Form1.Color := StringGrid1.Canvas.Pixels[R.Left + 1, R.Top + 1];
  7. end;
Advertisement
Add Comment
Please, Sign In to add comment