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... 下一页