Tutorial on events and triggers? lazarus / 13-General ---------------------------------------------------------------------- cybersmyth · 2011-03-24 13:22 Can anyone point me to a tutorial on working with events and triggers? I've used a lot of event handlers to call procedures, but don't know how to make my own. ---------------------------------------------------------------------- TurboRascal · 2011-03-24 13:47 You make your own event handler whenever you doubleclick an event in the Object Inspector What events would you like to handle exactly? ---------------------------------------------------------------------- cybersmyth · 2011-03-25 22:48 Basically I'm using lNet to download some files and then do some stuff to them. I'm using the lNet event triggers and want to create my own. So that when the file is downloaded, the program manipulates it and then fires off an event trigger. Right now I'm using a one second timer and series of Boolean to tell what has been done to the file and then what to do next, but I know this is really inefficient. But I don't know anything about events other than the fact that you assign an event with an @. ---------------------------------------------------------------------- TurboRascal · 2011-03-25 23:11 I'm not familiar with lNet-specific events, do you create their objects as dropped nonvisual components or you create them programatically? If you drop them, then of course it should be much easier because you have all events listed in Object Inspector. If not, you assign them as you suggested: Code: [Select]Component.Event := @YourHandler; for example: Code: [Select]Form1.OnShow := @SayHello; You just need to find your exact event names in the documentation...