On Sat, 10 Nov 2007 13:01:55 +0100
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:

> > Yes I'd wish to do so. I have windows and OSX here (I guess I can
> > test the GTK part in OSX). What I don't have is much time, so I'd
> > really like to only implement that function. Do you have a link
> > where I can find instructions about how to do so?
> 
> I don't think there are instructions. I just made a commit where I
> added a new function to TWSCustomTrayIcon, called ShowBalloonHint:
> 
> http://www.freepascal.org/cgi-bin/viewcvs.cgi?root=lazarus&rev=12809&view=rev
> 
> You can study it and see which places were altered. Would would need
> to do something similar.
> 
> Where is ParentWindow declared? TCustomForm?
> 
> > I already tried it once, but I had to recompile the LCL quite often
> > and I probably lost patience
> 
> You will have to rebuild lcl sometimes to do this, and also to test
> and fix if it's wrong.

I think ParentWindow is very widgetset specific (see below). Probably
it will work cross platform very limited. See at end for an
alternative solution.

- AFAIK under winapi you can stack handles even of different processes.
gtk does not allow this. I don't know about qt, carbon, fpgui, but
probably they all have some limitations of child/parent relationships.

- the LCL handles messages and delegates them downwards and upwards to
parents/childs TControls. But if the Handle has no associated
TWinControl then messages can not be passed this way. Only the
widgetset knows how to handle this. You must check every place where a
handle is used if it is a normal LCL handle or a foreign handle. This
will be a lot of work.

Solution:
It is probably easier to create a wrapper TWinControl / TCustomForm
with the ability to use the foreign Handle.


Mattias
 

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to