摘要:
uses TypInfoprocedure SetImeA(AOwner:TForm);var i:Integer;begin for i := 0 to AOwner.ComponentCount - 1 do begin if GetPropInfo(AOwner.Components[i],'ImeName')<>nil then begin SetPropValue(AOwner.Components[i],'ImeName', readinifile(getinifile,'ime','imename', 阅读全文
摘要:
Delphi的TCustomForm留有一个为IDE的可视化设计的用的接口Designer.Designer是IDesignerNotify, IDesignerHook 接口.我在这里实现了这些接口.程序不用做任何改动,只要调函数BeginDesign就可以开始像IDE一样设计.EndDesign函数是结束设计.{******************************************************************************TFrom DesignHook接口的实现.wr960204 武稀松2007.9.10******************** 阅读全文
摘要:
//edit by cxg. 2008-04-19 10:01:52//增加保存"显示标题"procedure TCustomDBGridEh.SaveColumnsLayoutProducer(ARegIni: TObject; Section: String; DeleteSection: Boolean);var I: Integer; S: String;begin if (ARegIni is TRegIniFile) then TRegIniFile(ARegIni).EraseSection(Section) else if DeleteSection the 阅读全文