Sign in Join

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

Mailing lists / lazarus / 2001-04

Events = ?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

FoodTechnologist

As I can see, lazarus seems to be more and more stable. But one nesessury thing is not supported enough yet: events in IDE. I even can't imagine how they can be made... cleanly. You've made cleanly ObjectInspector + properties support cleanly, which is 10 times more difficult than dirty way (I mean direct including pascal code in autogenerated inc-files, where even events can be easily made). But this step... I have no idea how can it be done (only this dirty way) The program does not exist while you design it. But without events lazarus won't be a ready product.

Reply by email

Mattias Gaertner
to FoodTechnologist
Show quoted text 5 lines
As I can see, lazarus seems to be more and more stable. But one nesessury thing is not supported enough yet: events in IDE. I even can't imagine how they can be made... cleanly. You've made cleanly ObjectInspector + properties support cleanly, which is 10 times more difficult than dirty way.

In fact, the implementation of the objectinspector-properties was really easy, because Delphi provided some examples, and the fpc RTTI code was nearly completed (thx to Sebastian Guenther).
But events are really tricky. See below.

(I mean direct including pascal code in autogenerated inc-files, where even events can be easily made).

The lrs files are autogenerated include files with pascal code. The FORMDATA is the binary-form-stream as string constant. This reduces the executable size a little bit and is somewhat faster.

But this step... I have no idea how can it be done (only this dirty way) The program does not exist while you design it.

Yes, indeed, this was tricky. My solution can be found in jitforms.pp. There are two dirty tricks which I hope can be solved better. Any suggestions are welcome.

But without events lazarus won't be a ready product.

Of course the IDE will support events. The fcl, jitforms, object inspector and property editors already support events (only small bugs left). The only missing parts are a simple parser and code tools to find, list, add and remove events and procedures.

Mattias

Reply by email