Recent

Author Topic: Application Events in Lazarus  (Read 2517 times)

webersonfm

  • Newbie
  • Posts: 1
Application Events in Lazarus
« on: April 25, 2019, 12:05:14 am »
Hi guys,

I'm rewriting my code in Delphi to Lazarus. In Delphi, I use a ApplicationEvents.
Is there one component like this in Lazarus?
P.S. Sorry my English.

ASerge

  • Hero Member
  • *****
  • Posts: 2248
Re: Application Events in Lazarus
« Reply #1 on: April 25, 2019, 12:18:29 am »
I'm rewriting my code in Delphi to Lazarus. In Delphi, I use a ApplicationEvents.
Is there one component like this in Lazarus?
TApplicationProperties

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Application Events in Lazarus
« Reply #2 on: April 25, 2019, 12:31:22 am »
Yes, ApplicationProperties. You'll find it in the "Additional" tab ... about one third from the end, IIRC, close to the grid components.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

devEric69

  • Hero Member
  • *****
  • Posts: 648
Re: Application Events in Lazarus
« Reply #3 on: May 14, 2019, 01:44:08 pm »
You can also look at the signature pointers of global procedures (through sysutils.pp):
Code: Pascal  [Select][+][-]
  1. var
  2.   OnGetVendorName: ...;
  3.   OnGetApplicationName: ...;
  4.   OnGetTempDir: ...;
  5.   GetTempFile: ...;
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

 

TinyPortal © 2005-2018