will it really traverse the classes ?
from what i understood about the manual (and i heavily use that
mechanism) it will only trigger the class where you dispatch to, so,
self.dispatch(msg) only works for the TForm.
if you need more than that you will need to traverse the component
tree yourself.
On Apr 19, 2011, at 6:04 PM, Mattias Gaertner wrote:
>
>
>
> dhkblas...@zeelandnet.nl hat am 19. April 2011 um 17:48 geschrieben:
>
>> Hi,
>>
>> I'm trying to understand how message methods work in FPC. For this I created
>> a simple app that shows a message. I also created a second (iden
dhkblas...@zeelandnet.nl hat am 19. April 2011 um 17:48 geschrieben:
> Hi,
>
> I'm trying to understand how message methods work in FPC. For this I created
> a simple app that shows a message. I also created a second (identical form)
> and I expected that all message methods related to
ZeelandNet Webmail Hi,
I'm trying to understand how message
methods work in FPC. For this I created a simple app that shows a
message. I also created a second (identical form) and I expected that
all message methods related to MY_MESSAGE would be executed when I
pressed either one or the othe
Hi,
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
messageName:String[200];
messageValue:integer;
end;
TTestMessages = class(TObject)
...
procedure OnClick(var msg:TMsg);
> Hello,
> I have some problem with DefaultHandler method. When I pass a message
> for which is special handler defined everything is ok, but when it
> should be passed to DefaultHandler (which is overriden) it does
> nothing. Here is some sample code:
You need to use 1.9.x. It also gives a w
Hello,
> I have some problem with DefaultHandler method. When I pass a
>message for which is special handler defined everything is ok, but when
>it should be passed to DefaultHandler (which is overriden) it does
>nothing. Here is some sample code:
>
> {$MODE OBJFPC}
> type TMyMessage = record
Hello,
I have some problem with DefaultHandler method. When I pass a message for which
is special handler defined everything is ok, but when it should be passed to
DefaultHandler (which is overriden) it does nothing. Here is some sample code:
{$MODE OBJFPC}
type TMyMessage = record
M