In creating a new app with a stringGrid, I was expecting to create clipboard procedures for the standard cut, copy, and paste to permit exchange with other apps including spreadsheets.
To my surprise, I discovered that the standard ^X, ^C, and ^V keyboard shortcuts work in delivered Lazarus StringGrids.
So, I wanted to place these commands in the "Edit" menu under Cut ^X, Copy ^C and Paste ^V, to make the app familiar.
I was able to find the tStringGrid.CopyToClipboard function and placed it in associated menu event, and that worked.
procedure TMainForm.mmCopyClick(Sender: TObject);
begin
StringGrid1.CopyToClipboard(True);
end;
But, there are no documented procedures for what the accelerator keys (^X and ^V) do. And, I would want to have the menu actions function the same way as the accelerator keys. I presume I can look into the StringGrid code, but others have probably run into this and perhaps can save me some time.
I suspect there are no "undocumented" procedures. But why would the developers create this functionality and not expose it?