Hello Felipe,
I would try using the Parent property. What's the difference between
Parent and ParentWindow?
Thanks for the tip, but I tried that already. Parent needs a
TWinControl, which I don't have. I only have the window handle. I tried
FindControl(Handle : THandle) : TWinControl (or similar, don't remember
exactly from memory), but it only returned nil. Having a look at the
FindControl() code, it seems as if it was just querying a list of self
instancieted TWinControl descendants.
Having another look at the code I found another constructor
TWinControl.CreateParented(Handle : THandle) useful. It exactly allows
me to specify and set the private fParentedWindow property of a
TWinControl element. However a) I can't just recreate that form, since
it already exists and b) even in one test, where I recreated the form it
fails (the behavior is that the form is located always on pixel (0, 0)
of my screen).
The second thing is: I don't know how to do it platform independent. I
know since the SDK I'm using also exists on the mac and on linux, that
it must work similar, but rewriting the SDK in pascal from scratch I do
not have a clue how to do this. The rest (of my translated SDK) works
perfectly fine, but this tiny problem stops me from using it.
Kind regards,
Christian
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives