Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-06

DFM/LFM in Lazarus WAS: RE: How I canparticipeinLazarus?.....

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sebastian Günther
to Shane Miller: So, do we have a time frame when this will be worked on? My main interest is getting…
Marc Weustink wrote
Today after I found out that the reading of components wasn't implemented and that no one of the FPC is currently working on it.

I'm planning on implementing a general-use streaming scheme for a long time, but I had no time until now... (at first I managed to get some basic XML streaming working, then I had to waint until certain compiler features which exist in Delphi have been implemented, and until then I didn't find time to continue the work)

Show quoted text 7 lines
I had the idea to find out what needed to be done, to find out if I really understand the process of reading and creating controls. Ask if it was ok that I, a non FCL member, shall implement this. Ask if it is correct that TTextReader and the creation of controls needs to be implemented Everybody has his own buisiness, but in this case we are both helped with it, and it is an opportunety to give something back to the FPC team.

I guess that you will see that implementing TReader is a non-trivial task; it is really complex.
I personally don't know what to do next: I'm busy with Unicode support, the next-generation XML units, fpGFX and finally fpGUI als successor to KCL. Somewhere between this lies the streaming support. The streaming support would be more or less 'easy' to implement if you just would copy the VCL sources; but getting it right using only the official documentation is almost impossible, and then you still have only DFM streaming.

Perhaps we should coordinate the streaming implementation trials; currently I'm busy with reading some books about Unicode and XML, but in one or two days I should be able to work on streaming support again. (on generic streaming, which is not bound to DFM.)

- Sebastian

Reply by email

Shane Miller

So, do we have a time frame when this will be worked on?

My main interest is getting Lazarus to be able to compile and run programs. I need the DFM's to build the hidden create's and such behind the scenes so that I can get lazarus to actually compile AND run a working program. I have it compiling but the control's are never really "create"d because the code isn't there for that.

Shane

>> 06/20/00 07:58AM >>>
Show quoted text 6 lines
Shane Miller wrote: > > Could someone explain to me how it works please. Reading DFM files simply doesn't work yet. (that writing should work is new for me...

Not DFM files, but I did create text files with the textwriter.

Show quoted text 5 lines
) And adding reading support is not a matter of a few hours of work, this is a really heavy task if it should be implemented properly. I already had a look on this over 8 months ago, and it will still need a few weeks until I can try to add full serialisation support to FCL.

If it was easy, it would probably have been done a long time ago :(

Michael.

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

Reply by email

Marc Weustink
to Shane Miller
Sebastian G|nther wrote 5 lines
Perhaps one time you will manage to get something working on your own. Until now I mainly see that Lazarus just takes components which already existed and glues them together. The real work is getting the basic stuff working, and Lazarus has done _nothing_ for this until now.

Today after I found out that the reading of components wasn't implemented and that no one of the FPC is currently working on it. I had the idea to find out what needed to be done, to find out if I really understand the process of reading and creating controls. Ask if it was ok that I, a non FCL member, shall implement this. Ask if it is correct that TTextReader and the creation of controls needs to be implemented
Everybody has his own buisiness, but in this case we are both helped with it, and it is an opportunety to give something back to the FPC team.

Somehow I dont want to know today, maybe tomorrow.

Marc

Reply by email

Sebastian Günther
to Shane Miller: So, do we have a time frame when this will be worked on? My main interest is getting…
Shane Miller wrote
So, do we have a time frame when this will be worked on?

Perhaps one time you will manage to get something working on your own. Until now I mainly see that Lazarus just takes components which already existed and glues them together.
The real work is getting the basic stuff working, and Lazarus has done _nothing_ for this until now.

- Sebastian

Reply by email

Michael Van Canneyt
to Shane Miller: So, do we have a time frame when this will be worked on? My main interest is getting…
Shane Miller wrote
So, do we have a time frame when this will be worked on?

Not in the nearest weeks, that is for sure. Too much regular work :(

Show quoted text 6 lines
My main interest is getting Lazarus to be able to compile and run programs. I need the DFM's to build the hidden create's and such behind the scenes so that I can get lazarus to actually compile AND run a working program. I have it compiling but the control's are never really "create"d because the code isn't there for that.

A quick hack would be to convert a .dfm to the following:

Procedure TMyForm.CreateForm;
begin
  Button1:=TButton.Create(Self);
  Button1.Parent:=Self;
  Button1.Top:=15;
  Button1.Left:=100;
  // etc
end;

That should be easy to do.

Michael.

Show quoted text 38 lines
Shane >>> 06/20/00 07:58AM >>> On Tue, 20 Jun 2000, Sebastian [iso-8859-1] Gnnther wrote: > Shane Miller wrote: > > > > Could someone explain to me how it works please. > > Reading DFM files simply doesn't work yet. (that writing should work is > new for me... Not DFM files, but I did create text files with the textwriter. > ) > And adding reading support is not a matter of a few hours of work, this > is a really heavy task if it should be implemented properly. I already > had a look on this over 8 months ago, and it will still need a few weeks > until I can try to add full serialisation support to FCL. If it was easy, it would probably have been done a long time ago :( Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Stefan Hille
to Shane Miller: I agree with the quick hack theory, but your message "A quick hack would be to convert a…

Hi!

Shane Miller wrote 6 lines
I agree with the quick hack theory, but your message "A quick hack would be to convert a .dfm to the ..." assumes I have a dfm. I don't! I guess I could fake one, or do we have the capability of writing one? Shane

I don't think you'll need generate and parse the
CreateForm method. Parsing should be done whenever a Form in Designstate receives focus, because that way you could also edit properties in the source.

just my 2cent

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Shane Miller

I agree with the quick hack theory, but your message "A quick hack would be to convert a .dfm to the ..." assumes I have a dfm. I don't!

I guess I could fake one, or do we have the capability of writing one? Shane

>> 06/20/00 08:47AM >>>
Shane Miller wrote
So, do we have a time frame when this will be worked on?

Not in the nearest weeks, that is for sure. Too much regular work :(

Show quoted text 6 lines
My main interest is getting Lazarus to be able to compile and run programs. I need the DFM's to build the hidden create's and such behind the scenes so that I can get lazarus to actually compile AND run a working program. I have it compiling but the control's are never really "create"d because the code isn't there for that.

A quick hack would be to convert a .dfm to the following:

Procedure TMyForm.CreateForm;
begin
  Button1:=TButton.Create(Self);
  Button1.Parent:=Self;
  Button1.Top:=15;
  Button1.Left:=100;
  // etc
end;

That should be easy to do.

Michael.

Show quoted text 38 lines
Shane >>> 06/20/00 07:58AM >>> On Tue, 20 Jun 2000, Sebastian [iso-8859-1] Gnnther wrote: > Shane Miller wrote: > > > > Could someone explain to me how it works please. > > Reading DFM files simply doesn't work yet. (that writing should work is > new for me... Not DFM files, but I did create text files with the textwriter. > ) > And adding reading support is not a matter of a few hours of work, this > is a really heavy task if it should be implemented properly. I already > had a look on this over 8 months ago, and it will still need a few weeks > until I can try to add full serialisation support to FCL. If it was easy, it would probably have been done a long time ago :( Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

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

Reply by email

Michael Van Canneyt
to Shane Miller
Shane Miller wrote
I agree with the quick hack theory, but your message "A quick hack would be to convert a .dfm to the ..." assumes I have a dfm. I don't! I guess I could fake one, or do we have the capability of writing one?

Sure; a .dfm file is nothing else than

object MyForm: TMyForm
Caption = 'My form'
Top = 100
Left = 100
Width = 600
Height = 480
PixelsPerInch = 120
OnShow = MyFormShow
Object MyButton: TButton
Top = 10
Left = 10
Width = 75
Height = 25
Caption = 'Push me'
OnClick = MyButtonClick

  end

end

Just save any form in D5, and make sure the 'Text DFM' is switched on. (a binary .dfm looks different of course)

As of Delphi 5, they switched to text dfms because most versioning systems can't cope very well with binary files.

Michael.

Reply by email