Hi all,
I have a custom component that needs to send some text to a TMemo control on a form. The TMemo is acting like a log, and I want my custom components to be able to show what they're doing via this log.
I tried simply adding the form's unit to my component's unit's uses clause, but that caused issues (my component is part of a package). I'm happy to continue exploring that option, but I figure sending a windows message is probably the best way to go about it.
But how do I send a string? I presume I allocate some memory and pass a pointer to it, but I'd like some advice and perhaps some code if possible.
Thanks.
I have a custom component that needs to send some text to a TMemo control on a form. The TMemo is acting like a log, and I want my custom components to be able to show what they're doing via this log.
I tried simply adding the form's unit to my component's unit's uses clause, but that caused issues (my component is part of a package). I'm happy to continue exploring that option, but I figure sending a windows message is probably the best way to go about it.
But how do I send a string? I presume I allocate some memory and pass a pointer to it, but I'd like some advice and perhaps some code if possible.
Thanks.