![]() |
TVirtualStringTree und Strg+C
Kann mir jemand sagen, wie ich die Standard-window-tastenkombi. für Copy abfragen kann.
Hat beides nicht funktioniert:
Delphi-Quellcode:
einzeln geht es (Key = 67) oder (ssCtrl in Shift) aber nciht zusammen.
procedure TfraGLOB_VSTAnalyseGrid.vstAnalyseKeyAction(Sender: TBaseVirtualTree;
var CharCode: Word; var Shift: TShiftState; var DoDefault: Boolean); begin if (CharCode = 67) and (ssCtrl in Shift) then Clipboard.AsText := vstAnalyse.ContentToText(tstAll, AnsiChar(ListSeparator)) + #0; end; procedure TfraGLOB_VSTAnalyseGrid.vstAnalyseKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (Key = 67) and (ssCtrl in Shift) then Clipboard.AsText := vstAnalyse.ContentToText(tstAll, AnsiChar(ListSeparator)) + #0; end; |
AW: TVirtualStringTree und Strg+C
Bei mir funktioniert es so:
Delphi-Quellcode:
procedure TForm7.VirtualStringTree1KeyUp(Sender: TObject; var Key: Word;
Shift: TShiftState); begin if (Key = Ord('C')) and (ssCtrl in Shift) then Caption := Format('%P', [VirtualStringTree1.GetFirstSelected]); end; |
AW: TVirtualStringTree und Strg+C
Also bei mir klappt das mit dem Code
Delphi-Quellcode:
wunderbar.
if (Key = 67) and (ssCtrl in Shift) then
Sowohl im OnKeyDown als auch im OnKeyUp event. |
AW: TVirtualStringTree und Strg+C
Sorry mein Fehler, ich hatte im MainMenü einen Eintrag der Strg+C schon abfängt.
Gruß David |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:20 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz