On 9 October 2012 14:51, Howard Page-Clark <[email protected]> wrote:

> On 09/10/12 1:32, Frank Church wrote:
>
>>
>> Whenever I press the enter key in an edit control which is not
>> configured to tab to the next item, all the ext in the edit control
>> becomes selected.
>>
>> Is there some way to disable this behaviour, or unselect the selected
>> text?
>>
>
> Try setting AutoSelect to False (I'm not sure if this is effective on all
> platforms).
> Else trap the Enter key in the OnKeyPress event and set it to #0 or
> whatever suits your purpose.
>
>
> --
>


It turns out the OnKeyUp was the right key to test for.

Thanks for the hint



> ______________________________**_________________
> Lazarus mailing list
> [email protected].**freepascal.org<[email protected]>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to