I am trying to retrieve the value of the data in a cell when the mouse is clicked (or preferably double-clicked) or a key is pressed. The key press if fine, however I can't seem to get the double-click to work. Any pointers in the right direction?
Here is my code for the KeyPress:
procedure TfrmMain.dbgSearchResultsKeyPress(Sender: TObject;
var Key: Char);
var
strText : string;
begin
strText := dbgSearchResults.SelectedField.Value;
sbMsg.SimpleText := strText;
end;
end.
------------------------------------
There's no place like 127.0.0.1
------------------------------------
Here is my code for the KeyPress:
procedure TfrmMain.dbgSearchResultsKeyPress(Sender: TObject;
var Key: Char);
var
strText : string;
begin
strText := dbgSearchResults.SelectedField.Value;
sbMsg.SimpleText := strText;
end;
end.
------------------------------------
There's no place like 127.0.0.1
------------------------------------