本文整理自网络,侵删。
uses Clipbrd;
procedure TForm1.Timer1Timer(Sender: TObject);beginif Clipboard.HasFormat(CF_TEXT) then begin if Memo1.Lines.IndexOf(Clipboard.AsText)=-1 then begin Memo1.Lines.Add(Clipboard.AsText); end; //Clipboard.Clear; endelse // MessageDlg('There is no text on the Clipboard',mtInformation, [mbOK],0);end; 相关阅读 >>
decodedate:从一个tdatetime变量中提取年、月、日数值
Delphi ini 文件操作记要: 使用 tmeminifile
Delphi 双击listbox1内容,数据插入到memo1/synedit1鼠标指定位置
更多相关阅读请进入《Delphi》频道 >>