Re: [fpc-pascal] Message methods

2011-04-19 Thread Jorge Aldo G. de F. Junior
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.

Re: [fpc-pascal] Message methods

2011-04-19 Thread Darius Blaszyk
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

Re: [fpc-pascal] Message methods

2011-04-19 Thread Mattias Gaertner
    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

[fpc-pascal] Message methods

2011-04-19 Thread dhkblaszyk
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

[fpc-pascal] Message methods with string identifier

2008-08-12 Thread Leonardo Cecchi
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);

Re: [fpc-pascal]Message methods - DefaultHandler

2004-06-08 Thread Peter Vreman
> 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

Re: [fpc-pascal]Message methods - DefaultHandler

2004-06-08 Thread Thomas Schatzl
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

[fpc-pascal]Message methods - DefaultHandler

2004-06-08 Thread Mr. Ego
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