[lazarus] New stuff commited

Michael A. Hess mhess at miraclec.com
Fri May 14 14:21:59 EDT 1999


Greetings,

Unless I really screwed things up (I wouldn't be surprised) I have
commited my changes to CVS. I have moved TApplication to forms.pp and
removed applications.pp. The reason will be apparent if you look at the
code. Application is automatically built for you so your main project
files should look exactly like a Delphi project file.

uses guiapi, forms;

begin
   Application.Initialize;
   Application.CreateForm({formtype}, {form instance});
   Application.Run;
end;

I have added Application.Terminate to the Quit menu item.

I modified a small amount of main.pp to adjust TForm1 to use the new
application. This meant adding a TForm1.Create. I have also started
moving GUI specific API calls into the unit guiapi.pp. In the case of
lazarus this will be use for gtk+ calls but in the future a qt specific,
or gnome specific guiapi.pp file could be created and then an fpc
program could be linked with those libraries.

As we make those kind of modifications things like TApplication and
TForm should probably be moved into the vcl instead of being in lazarus.

I will be doing more to TApplication in the furture to store information
about the various Forms under its control.

I used {$mode objfpc} to get it to compile since {$mode delphi} really
started messing things up.

-- 
==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com






More information about the Lazarus mailing list