Code: Select all
TOnTextSelectionChanged = procedure(Sender: TObject; const browser: ICefBrowser; const selected_text: ustring; const selected_range: PCefRange) of Object;
Code: Select all
TOnTextSelectionChanged = procedure(Sender: TObject; const browser: ICefBrowser; const selected_text: ustring; const selected_range: PCefRange) of Object;
Code: Select all
procedure TBrauserChrom.Chrom_TextSelectionChanged(Sender: TObject; const browser: ICefBrowser; const selected_text: ustring; const selected_range: PCefRange);
begin
FHelpTextSelection:= selected_text;
showmessage(FHelpTextSelection);
end;
That menu option is added automatically by Chromium when the user can copy something from the document.dvbss11 wrote: Mon Sep 21, 2020 2:37 pm https://prnt.sc/ul6uge
in the mini browser there is a copy when selected I do not have it
It's the "off-screen rendering" mode used by the SimpleOSRBrowser demo. It gives you total control of the browser events and it uses the TChromium.OnPaint event to send raw bitmap data with the web contents. It's much slower but you have total control.