Micha Nelissen wrote:
As regards to your need for messages: a component (TSysTray) should be
written that hides the differences between win32 and gtk under an abstract
layer. To implement the win32 side, it might be nice to be able to hook
TWin32WidgetSet(WidgetSet).FAppHandle window, since it's there anyway) for
different components somehow, but that needs some more thought.
If I create a component for this and the component happens to be derived
from a windowed class I might want to use the WndProc of that class to
receive the messages from the icon. I wouldn´t like to require that all
users of the component recompile the LCL with a specific option.
Other options, like using SetWindowLong or creating a completely new
Window just for the icon will require that I create pure procedure (non
an method). This eliminates the advantage of using WndProc.
On my own case I think it will be considered a drawback if the other
developers need to recompile the LCL, and I am trying to convince them
to use Lazarus. So I will need to create my own pure procedural WndProc
to handle this. It is quite ugly as this will be the only function
outside a object in the entire program.
Felipe
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives