How to Create Multiple Directories

Posted December 15th @ 9:20 pm by m3Rlin

The standard MkDir() function can create only one directory, it can not create subdirectories at one time. This function allows you to create multiple directories (directories inside directories). Delphi 4+ have the ForceDirectories() routine which does the same thing. It is declared in the FileCtrl unit.

uses
SysUtils, FileCtrl;

procedure MkDirMulti(sPath: string);
begin
if sPath[Length(sPath)] = [...]

How to Create a Gradient Form

Posted December 15th @ 9:13 pm by m3Rlin

In setup programs or sometimes in AboutBoxes you can find gradient forms.
It sure looks as if it were a lot of work but it’s really very easy. All you have to do is add this code to your program.
This example will create a gradient rectangle on the whole form Canvas. To change it’s size just [...]

« Previous EntriesNext Entries »