11 2013 档案

摘要:测试环境:XP,DELPHI XE验证通过结构:主程序+一个Dll窗体共享方式原理:通过主程序与各Dll定义相同的参数结构体,由主程序实例化该结构体,对于各Dll间的共享,通过传主程序实例化的结构体指针达到各Dll与主程序相互间的数据共享。且Dll释放不影响主程序实例化结构体时获得的内存空间主程序代... 阅读全文
posted @ 2013-11-28 16:20 胡伟峰 阅读(401) 评论(0) 推荐(0)
摘要:1.CxGrid汇总功能①OptionsView-Footer设置为True,显示页脚② CxGrid的Summary选项卡定义要汇总的列和字段名及汇总方式,Footer选项卡定义单个汇总,Default For Groups定义按组汇总。OptionsView-GroupFooters设置为gfA... 阅读全文
posted @ 2013-11-28 10:20 胡伟峰 阅读(3661) 评论(1) 推荐(1)
摘要:列解决: .GroupIndex := -1; .Visible := True;****************************************************************************39 保存修改到数据库解决:procedure .FormClos... 阅读全文
posted @ 2013-11-28 10:19 胡伟峰 阅读(1019) 评论(0) 推荐(1)
摘要:17. 怎样设计多表头的cxGrid?解决:cxGrid可以解决如下的表头:---------------------------------| 说明1 | 说明2 |---------------------------------| 字段1 | 字段2 | 字段3 | 字段4 || 字段5 | ... 阅读全文
posted @ 2013-11-28 10:18 胡伟峰 阅读(1708) 评论(0) 推荐(1)
摘要:1. 去掉cxGrid中台头的Box解决:在tableview1的ptionsview的groupbybox=false;2.统计功能解决:(1) tableview1. tableview1的optionsviewfooter=ture2.然后在cxGRid1的customize..中的summa... 阅读全文
posted @ 2013-11-28 10:17 胡伟峰 阅读(2990) 评论(0) 推荐(0)
摘要:沿用上一篇Demo环境:DelphiXE,XP,SQL2005贴出改动过的单元代码:dbGrid控件版:unit SubMain_Unit;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Control... 阅读全文
posted @ 2013-11-28 10:09 胡伟峰 阅读(504) 评论(0) 推荐(0)
摘要:引用StrUntil.pas单元里面有两个函数可以比较字符串与字符串集合,判断是否字符串在字符串集合中。函数 function AnsiMatchStr(const AText: string; const AValues: array of string): Boolean; $[StrUtils... 阅读全文
posted @ 2013-11-27 23:52 胡伟峰 阅读(316) 评论(0) 推荐(0)
摘要://使用 TFieldDef 建表: begin with ClientDataSet1.FieldDefs do begin Add('Name' , ftString, 12, True); { True 表示是必填字段 } Add('Age', ftInteger); end;... 阅读全文
posted @ 2013-11-27 22:12 胡伟峰 阅读(468) 评论(0) 推荐(0)
摘要:1、新建Dll工程2、Dll工程全部代码library SubMain;{ Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND y... 阅读全文
posted @ 2013-11-22 15:10 胡伟峰 阅读(476) 评论(0) 推荐(0)
摘要:环境DelphiXE,实测DevExpress手工安装顺序:1、ExpressCore Library2、XP Theme Manager3、ExpressGDI+ Library4、ExpressLibrary5、ExpressCommon Library6、ExpressDataControll... 阅读全文
posted @ 2013-11-20 21:32 胡伟峰 阅读(538) 评论(0) 推荐(0)