随笔分类 -  Delphi 小小例子

摘要:不需要引用其他单元文件, 如果用泛型列表TList<T>或 字典TDictionary<TKey,TValue>时需要引用:System.Generics.Collections 上面用到两个 占位符,通过 RunOnUIThread<T1,T2>()参数传进去,并且前面要标明用到的 占位符, 这个 阅读全文
posted @ 2017-03-17 16:43 海蓝7 阅读(235) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2017-02-20 11:29 海蓝7 阅读(294) 评论(0) 推荐(0) 编辑
摘要:1.添加一个Timer控件,Interval属性设置为20。2.添加一个Label控件,Name为labMessage。3.在Timer的OnTimer事件添加如下代码:procedure TForm1.Timer2Timer(Sender: TObject);begin labMessage.L... 阅读全文
posted @ 2015-11-09 16:04 海蓝7 阅读(1008) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示