Recent

Author Topic: Application.OnMessage alternative  (Read 10591 times)

Elphi

  • Full Member
  • ***
  • Posts: 132
Application.OnMessage alternative
« on: January 16, 2006, 06:09:24 pm »
Hi,

I have a Delphi datamodule which declares an Application.OnMessage event handler. I can't find an OnMessage property in de Lazarus implementation of Forms.TApplication. How should I solve this?

Tia,
Elphi

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Application.OnMessage alternative
« Reply #1 on: January 16, 2006, 07:28:04 pm »
I have no idea. What do you want to do in Application.OnMessage?

Anonymous

  • Guest
Application.OnMessage alternative
« Reply #2 on: January 16, 2006, 09:04:48 pm »
The datamodule is part of the OpenStreamSecII library demo applications. Windows messages arriving serve as an external source of randomness and feed a Yarrow Pseudo Randum Number Generator entropy accumulator with random data used for reseeding the generator.
It's just a demo, but I don't want to break the author's original intentions.

OnMessage properties of TApplication and or TApplicationEvents aren't supported, so what else can I do?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Application.OnMessage alternative
« Reply #3 on: January 16, 2006, 09:17:25 pm »
The LCL doesn't support this, simply because this is not portable to other widget sets.

Unless you want to program with winapi, I see no solution.

 

TinyPortal © 2005-2018