随笔分类 - Delphi 小小例子
摘要:不需要引用其他单元文件, 如果用泛型列表TList<T>或 字典TDictionary<TKey,TValue>时需要引用:System.Generics.Collections 上面用到两个 占位符,通过 RunOnUIThread<T1,T2>()参数传进去,并且前面要标明用到的 占位符, 这个
阅读全文
摘要:unit Unit3; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,System.Generics.Co...
阅读全文
摘要:1.添加一个Timer控件,Interval属性设置为20。2.添加一个Label控件,Name为labMessage。3.在Timer的OnTimer事件添加如下代码:procedure TForm1.Timer2Timer(Sender: TObject);begin labMessage.L...
阅读全文

浙公网安备 33010602011771号