Delphi and Kylix Splash Screens / Logos

Posted on May 4th, 2008 in General | 1 Comment »

If you have additional Delphi or Kylix screen shots, logos, beta splash screens that are not listed here, please send them to m3Rlin@delphifaq.net and I will add them!

Borland Delphi 3 Splash Screen

Borland Delphi 4 Field Test 3 “Allegro” Splash Screen

Borland Delphi 4 RC 2 Splash Screen

Borland Delphi 4 Splash Screen

Borland Delphi 5 Splash Screen (thanks to Michael Byrne & Joachim Schonart)

Borland Delphi 6 Splash Screen

Borland Delphi 7.0 Personal Splash Screen

Borland Delphi 2005 Splash Screen

Embarcadero Code Gear Delphi C++ Builder 2009 IDE Splash Screen

How To and Why Use Dynamically Created Forms

Posted on December 15th, 1999 in General | 2 Comments »

You almost never need all your application’s forms in memory all the time. To reduce the amount of memory required at load time and load time, you may want to create some forms only when you need to use them. For example, a dialog box needs to be in memory only during the time a user interacts with it.

Well, to do so you first have to create a form (or take an existing one), move it from the Project|Options auto-create list to the available forms list. You can do this manually too. Select Project|View source or View|Project source and remove the code creating the form. If your form is named Form1 then remove the following line from the projects source:

Application.CreateForm(TForm1, Form1);

Here’s the code that creates the form and after closing it, destroys it:

{ Use this for modal forms }
with TForm1.Create(Self) do
try
  ShowModal;
finally
  Free;
end;
...
{ Use this for non-modal forms }
var
  Form1: TFrom1;
...
begin
  Form1 := TForm1.Create(Self);
  Form1.Show;
end;

With non-modal forms you have to add this code to the form’s OnClose event:

...
Action := caFree;
...

This will free the memory allocated by the form when it is closed.