Ctrl+A
Posted: Tue Mar 14, 2017 3:09 am
Is it possible in TRichViewEdit programmatically (by code) to select all text by Ctrl+A ?
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://reportworkshop.com/forums/
Code: Select all
rve.SelectAll;
rve.Invalidate;
Code: Select all
procedure TForm3.RichViewEdit1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (ssCtrl in Shift) and (Key = ord('A')) then
begin
(Sender as TCustomRichViewEdit).SelectAll;
(Sender as TCustomRichViewEdit).Invalidate;
end;
end;