<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 9, 2014 at 3:26 PM, Antônio <span dir="ltr"><<a href="mailto:antoniog12345@gmail.com" target="_blank">antoniog12345@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"></div><div class="gmail_extra">So what the hell do class procedure TCustomRichMemo.WSRegisterClass?</div><br></div></blockquote><div>It associates the LCL TCustomRichMemo with a certain WS-handler class.<br></div><div><br>That's necessary at the time TRichMemo is allocated by LCL it would receive a proper WS-level handler associated.<br></div><div>If there's no WS-specific handler registered/implemented, then TRichMemo would still be allocated by won't do have any RichMemo specific functionality.<br></div><div>As an example Qt widgetset doesn't have any implementation of RichMemo handles. However, an application using RichMemp could still be allocated.<br><br></div><div>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.<br></div><div><br></div><div>thanks,<br>Dmitry <br></div></div><br></div></div>