[lazarus] New stuff commited

Cliff Baeseman Cliff.Baeseman at Greenheck.Com
Fri May 14 14:44:11 EDT 1999


I can't wait to see it this evening...

Sounds like it is a little cleaner.  I suppose we can move it to a vcl
directory once we get most of
the bugs worked out of it..


Cliff

-----Original Message-----
From: Michael A. Hess [mailto:mhess at miraclec.com]
Sent: Friday, May 14, 1999 1:20 PM
To: Lazarus-List
Subject: [lazarus] New stuff commited


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

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list