[lazarus] Events = ?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 2 04:17:17 EDT 2001


On 2001.04.02 08:10:11 +0200 FoodTechnologist wrote:
> 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









More information about the Lazarus mailing list