[fpc-pascal] Message methods with string identifier
leonardoce at interfree.it
Wed Aug 13 08:45:36 CEST 2008
I've some problems with message methods with string identifiers: the
DispatchStr method in the TObject class seems not to be working.
For example I have:
TMsg = record
TTestMessages = class(TObject)
procedure OnClick(var msg:TMsg); message 'OnClick';
But when I do:
The "OnClick" procedure it's not being called. With cardinal
identifiers it's all working. I've tried with FPC 2.2.0, 2.2.2 and
attached an example program.
Reading and trying the implementation of the DispatchStr method I've
found that the "name" field of the MsgStrTable seems not to be filled.
Probably I haven't understood the behaviour of something.
Where I'm wrong?
Thanks in advance,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 628 bytes
Desc: not available
More information about the fpc-pascal