<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 26, 2015 at 3:18 PM, Dmitry Boyarintsev <span dir="ltr"><<a href="mailto:skalogryz.lists@gmail.com" target="_blank">skalogryz.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 26, 2015 at 1:35 PM, luiz americo pereira camara <span dir="ltr"><<a href="mailto:luizmed@oi.com.br" target="_blank">luizmed@oi.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div><br></div></span><div>I implemented here long time ago: <a href="https://code.google.com/p/luipack/source/browse/trunk/luicontrols/searchedit.pas" target="_blank">https://code.google.com/p/luipack/source/browse/trunk/luicontrols/searchedit.pas</a><br><br></div><div>If agreed i can add to LCL as TEdit.TextHint<span></span><br></div></div></div></div></blockquote></div><br></div></span><div class="gmail_extra">Two notes here:<br></div><div class="gmail_extra"><br>#1<br>for the case of TSearchEdit - it should be (optionally) a stand alone widget, rather than a hard-coded pure LCL control.<br>otherwise it would not be rendered properly for OSX<br><a href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/ControlsText.html#//apple_ref/doc/uid/20000957-CH51-SW5" target="_blank">https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/ControlsText.html#//apple_ref/doc/uid/20000957-CH51-SW5</a><br><br></div><div class="gmail_extra">and maybe (<a href="https://developer.gnome.org/gtk3/stable/GtkSearchBar.html" target="_blank">https://developer.gnome.org/gtk3/stable/GtkSearchBar.html</a>) gtk3 ? <br></div><div class="gmail_extra"><br>Win32 as well as Qt doesn't seem to have "native" controls, thus having LCL-level wrapper is a good solution for them.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">#2<br></div><div class="gmail_extra">Is luipack being moved to other source hosting service? (i.e. github, sourceforge). code.google is closing.<br><br></div><div class="gmail_extra">thanks,<br></div><div class="gmail_extra">Dmitry</div></div></blockquote></div><div><br></div><div>In Windows:</div><div><br></div><div><div>uses</div><div>  Windows;</div><div><br></div><div>procedure TForm1.FormCreate(Sender: TObject);</div><div>const</div><div>  ECM_FIRST = $1500;</div><div>  EM_SETCUEBANNER = ECM_FIRST + 1;</div><div>begin</div><div>  SendMessage(Edit1.Handle, EM_SETCUEBANNER, 0,</div><div>    LParam(PWideChar(WideString('My placeholder on Windows'))));</div><div>end;</div></div><div><br></div><div>I implemented this feature in an old project that I maintain, LazSolutions, and it was cross-platform.</div><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>