patspiper schrieb:

The copied (original) component's events are fine. However, it is the clone's events which are not as desired. Its methods code+data are equal to the original component's methods code+data whereas the data part should point to the clone itself for proper operation of the clone. Any ideas on how this should be handled?

I don't think that the clipboard should contain pointers, which become invalid as soon as the referenced form is closed.

The data pointer should refer to the *form* containing the cloned component. When that form doesn't have the named method, the handler reference may be cleared.

DoDi


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to