this event is not working in firemonkey . Why ?
procedure TFrameMemoLineCount.mTxtKeyDown(Sender: TObject; var Key: Word;
var KeyChar: WideChar; Shift: TShiftState);
begin
if (Key = vkC) and (ssCtrl in Shift) then
begin
mTxt.CopyToClipboard;
Key := 0; // Prevenir o processamento adicional da tecla
end;
if (Key = vkV) and (ssCtrl in Shift) then
begin
mTxt.PasteFromClipboard;
Key := 0; // Prevenir o processamento adicional da tecla
end;
end;
I have a delphi multiplataform application i whould like my users could make copy and past on TMemo component. I have 2 buttons copy and paste. It work fine, but use Control C and Control V in Windows application its a good thing. My users dont what use past button. They want use Control V. I’m finishing a version of my editor chords and lyrics software. User can save many songs on sqlite database. Software can read and find chords and it draw diagrams chords found on text.
Leonardo Pereira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.