TNotifyEvent. OnClick Example for Delphi.
Wednesday, February 17th, 2010Listening to events in Delphi is pretty easy. In following I’d like to introduce two ways to list to events. Consider following example: (more…)
Listening to events in Delphi is pretty easy. In following I’d like to introduce two ways to list to events. Consider following example: (more…)
PDFCreator is a free tool for printing PDF documents. After installation on your system it can be used as any other printer. In the project I’m currently involved in, we use PDFCreator calls within Delphi code to generate PDF documents. PDFCreator has a number of parameters, which can be set before printing a document. These parameters are summarized under the following link.
Yesterday I had to realize a simple task: Load data from the database into a ComboBox in a separate thread. Threading in Delphi turned out to be quite easy. But still I faced several difficulties, i.e. weird effects. My thread looks pretty simple: (more…)
Recently I wrote a custom installer program and burned it to a CD together with particular files. After coping the files from the CD to the hard drive some files were set by Windows to read only. Below is the function to remove read only property of a file:
(more…)
In order to copy the content of a directory to the new location, I used ShFileOperation function. Important: if you want to copy only the content of the folder and not the folder itself, the StrFrom parameter should end with *.* like C:\MyTestFolder\sourceFolder\*.*
(more…)
Maybe there is another and more convenient way in Delphi to delete a folder, but what I could find and integrate into my application is the following function:
(more…)
Sometimes you need to place an icon on the desktop, pointing to a particular directory/file. The code below demonstrates how to do it.
(more…)