<br><br><div class="gmail_quote">On 9 October 2012 14:51, Howard Page-Clark <span dir="ltr"><<a href="mailto:hdpc@talktalk.net" target="_blank">hdpc@talktalk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 09/10/12 1:32, Frank Church wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Whenever I press the enter key in an edit control which is not<br>
configured to tab to the next item, all the ext in the edit control<br>
becomes selected.<br>
<br>
Is there some way to disable this behaviour, or unselect the selected text?<br>
</blockquote>
<br></div>
Try setting AutoSelect to False (I'm not sure if this is effective on all platforms).<br>
Else trap the Enter key in the OnKeyPress event and set it to #0 or whatever suits your purpose.<br>
<br>
<br>
--<br></blockquote><div><br><br>It turns out the OnKeyUp was the right key to test for.<br><br>Thanks for the hint<br><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

______________________________<u></u>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.<u></u>freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.<u></u>freepascal.org/mailman/<u></u>listinfo/lazarus</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>