随笔分类 - delhpi
摘要:位于Standard选项卡上,它是对EDIT控件的扩展,可以对多行文本进行显示、输入和编辑.Lines属性:该属性实际上为TStrings类型的对象,用来存放Memo对象的文本TStrings有一个缺省的属性Strings,它的定义为:property strings[index:integer]:string;其中,Index表示字符串的索引值,从0开始,到TStrings对象中字符串的最大行数减1为止。TStrings的主要方法:procedure add(const s:string);//在尾部添加一个字符串procedure delete(index:integer);//删除索引值
阅读全文
摘要:Delphi ListView基本用法大全//增加项或列(字段)ListView1.Clear;ListView1.Columns.Clear;ListView1.Columns.Add;ListView1.Columns.Add;ListView1.Columns.Add;ListView1.Columns.Items[0].Caption:='id';ListView1.Columns.Items[1].Caption:='type';ListView1.Columns.Items[2].Caption:='title';ListView1.
阅读全文
摘要://通过 DLL Wizard 建立:library TestDLL;uses SysUtils, Classes, Dialogs;{$R *.res}//建立过程procedure Test;begin ShowMessage('TestDLL.Test');end;//输出exports Test;beginend.//在其他工程调用,如果不在一个工程组,需要在相同目录下、System32下或指定路径;//声明可以在实现区或接口区,这里的函数名要一致,甚至大小写。//调用测试:procedure Test; external 'TestDLL.dll';p
阅读全文
浙公网安备 33010602011771号