
06.09.2011, 01:38
|
 |
.
|
|
Регистрация: 18.05.2011
Адрес: Омск
Сообщения: 3,970
Версия Delphi: 3,5,7,10,12,XE2
Репутация: выкл
|
|
Вот пример на OnMouseDown:
Код:
procedure TForm2.StringGrid1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
Col, Row: LongInt;
begin
StringGrid1.MouseToCell(X, Y, Col, Row);
if (Col = 1) and (Row = 1) then
begin
StringGrid1.Cells[Col, Row] := 'F';
end;
end;
__________________
Je venus de nulle part
55.026263 с.ш., 73.397636 в.д.
|