随笔分类 - 【Program-Tech | Delphi】
摘要:Write Log // strLog : the log content need write to log file; // strFile: the compliete file path(include the file name) of the log file. e.g. C:\log.log; procedure WriteLog(strLog, strFile: string); var fLog: TextFile; begin AssignFile(fLog, strFile); try i...
阅读全文
摘要:Delphi的ListView控件提供了一个叫OnCustomDrawSubItem的event给developer去对SubItem的颜色或者其它进行自定义。 event OnCustomDrawSubItem的定义如下: procedure TForm1.ListView1CustomDrawSubItem(Sender: TCustomListView; Item: TListIt...
阅读全文
摘要:在Delphi中,TStringList中有一个叫Find的Function。它的作用是在一个StringList中查找一个string,并且返回这个string在StringList中的索引。Delphi Help中的说明如下: Locates the index for a string in a sorted list and indicates whether a string with...
阅读全文
摘要:1、使用 Win32 API OutputDebugString procedure TForm1.BtnDebugClick(Sender: TObject); begin //这里调用OutputDebugString发送调试信息到调试器。在Delphi //里面,用View - Debug Windows - Event Log 来查看。 OutputDebugS...
阅读全文
摘要:以下表格是在Delphi 7中比较常用,而且比较有用的快捷键。 熟悉掌握了快捷键的使用,会使我们在coding的过程中更加顺利而且高效。 Shortcut Description Notes Ctrl+Pa...
阅读全文
摘要:正所谓,工欲善其事,必先利其器。对于本人,用惯了Visual Studio,现在转到要用Delphi,并且还是Delphi7,我表示有各种不习惯,以下内容为本人边用边研究的针对Delphi7的一些环境参数设置,使它真正成为一把利器。->Delphi7可以设置不同的用户习惯以适应不同的开发人员。具体设置在如下位置:Tools->Editor Opetions...->Key Mappings->左侧即为可选择的多种用户习惯。->默认缩进空格数:Tools\Editor Options\Source Options -> Block indent.->编辑
阅读全文

浙公网安备 33010602011771号