Hello Mattias,
If you only need a reparented control, that will not get focus,
get incorrect mouse and keyboard events and will likely crash, then it
is easier to implement only CreateParented. ;)
I not sure if I understand correctly what you meant with this. For sure
I don't want it to crash and I want something that gets the focus, but
I'm nearly a complete newbie here and thus I need some constructive help.
So what is the best way to accomplish my goal?
As far as I understood everything you wrote before, I do need to write a
descendant of TWinControl, that behalves like a normal LCL control (gets
the focus and other events) but also has the ability to reparent another
control only given by a handle.
In the original SDK the handle reads something like this:
void * systemWindow
platform-dependent parent window (HWND or WindowRef)
so it seems as if this isn't very platform-independent in the original
spec. I wonder how they do it on OSX and Linux (which are both supported
platforms)...
Thanks for the help so far,
Christian
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives