[Lazarus] TWin32WSCustomX class

Dmitry Boyarintsev skalogryz.lists at gmail.com
Sun Nov 9 22:05:30 CET 2014


On Sun, Nov 9, 2014 at 3:26 PM, Antônio <antoniog12345 at gmail.com> wrote:

> So what the hell do class procedure TCustomRichMemo.WSRegisterClass?
>
> It associates the LCL TCustomRichMemo with a certain WS-handler class.

That's necessary at the time TRichMemo is allocated by LCL it would receive
a proper WS-level handler associated.
If there's no WS-specific handler registered/implemented, then TRichMemo
would still be allocated by won't do have any RichMemo specific
functionality.
As an example Qt widgetset doesn't have any implementation of RichMemo
handles. However, an application using RichMemp could still be allocated.

Please note that WSRegisterClass is necessary for controls that heavily
depend on the underlying widgetset. Pure cross-platform controls don't need
this kind of bindings.

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141109/fba30780/attachment-0003.html>


More information about the Lazarus mailing list