Sign in Join

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

Mailing lists / lazarus / 2011-12

how to trace back the origin of events in LCL

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Bernd

HI,

I am sitting in front of a lot of code that was written by someone else and am trying to find out what is going on. Concrete example:

Lazarus:
trunk/debugger/registersdlg.pp

TRegistersDlg = class(TDebuggerDlg)
...

  procedure RegistersChanged(Sender: TObject);
  ...

end;

I want to know how this event is created, what is the best strategy to find out from where it comes from? I assume looking at the callstack won't help because I assume its somehow called asynchronously. How does it work? I have never used this mechanism myself, I have always used QueueAsyncCall() or SendMessage() for doing similar things but this looks like it is using the same LCL mechanism that is also used for other GUI events. How are they generated?

What strategy should I apply to find the origin of this message (or event or however it is called), what should I grep for to find it?

Bernd

Reply by email