当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: In this short article, first pu
 

 

 ·保存页面为mht的代码    »显示摘要«
    摘要: heres how to save a web page as a single file (mht format) using delphi code: uses cdo_tlb, adodb_tlb; ... procedure wb_saveas_mht(wb: twebbrowser; filename: tfilename); var msg: imess......
 ·我用delphi实现的singleton模式    »显示摘要«
    摘要: unit usingleton; interface uses sysutils; type esingletonexception = class(exception); tsingleton = class private // 单例类真正使用的构造函数,此处命名为createnew constructor createnew; public // 用于阻止显式调用,因为即便将其设......


Debugging ActiveForms

in this short article, first published in uk-bug news, ill show a few tricks that will help us debug activeforms from within the delphi (or c++builder) ide itself.

we start with a simple activeform. just perform a file | new, and from the activex tab pick the activeform. give it a name (like the default activeformx). in our case, i also chose to specify ukdebug as project name, resulting in ukdebug.ocx as activeform control. since the goal of this article is (only) to show how to debug activeform, i decided to give it a simple user-interface: a editbox, a button and a listbox. if you click on the button, then the edit.text is added to the listbox.items using the following line of code for the button.onclick event handler: procedure tactiveformx.button1click(sender: tobject); begin listbox1.items.add(edit1.text) end; warning: this will be the only line of delphi code that you need to write for this article!

the project | deployment options dialog is filled-in as follows on my machine:

if you wan
...   下一页

 ·vcl component messages    »显示摘要«
    摘要: vcl control messages (values): parameters: comments: cm_base ($b000) cm_activate no params used when app is actived or a (cm_base + 0) custom form is modally shown cm_deactiv......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE