Registriert seit: 4. Jan 2003
Ort: Sachsen
573 Beiträge
Delphi 5 Professional
|
Re: myedit.SelectAll ersetzen durch (Sender as TEdit).Select
13. Dez 2007, 01:37
Hallo DeddyH,
vielen Dank für Deine Unterstützung.
Delphi-Quellcode:
// copy1 : TMenuItem;
procedure TForm1.copy1Click(Sender: TObject);
var
c1, c2, c3 : TComponent;
begin
if Sender is TMenuItem then begin
c1 := Sender as TMenuItem;
c2 := c1.GetParentComponent;
c3 := (c2 as TPopupMenu).PopupComponent;
(c3 as TEdit).SelectAll;
(c3 as TEdit).CopyToClipboard;
end;
end;
mfg
eddy
|