Tedit: can't disable autoselect lazarus / 25-WinCE ---------------------------------------------------------------------- Rivello · 2012-11-18 06:48 Hello guys, It seems impossible to disable the autoselect property of Tedits in win CE. On win 32 everything works well, if I tab to the edit, the text is not selected. But when I try on win CE, it doesnt matter the value of the autoselect property, the text is always selected when the focus goes to the edit. I also noted that when the focus is in an edit and I click anywhere outside it, even without loosing the focus, its text is selected again. I'm making an on screen keyboard with speedbuttons to not loose focus of the Tedit, but everytime I click the speedbutton, (or anything else) the text of the tedit is selected and replaced by a single key of my virtual keyboard. Could anyone help? ---------------------------------------------------------------------- Rivello · 2012-11-18 07:28 Not sure if it's relevant, but I tried commenting the function "SelectAll" in lazarus/lcl/include/customedit.inc , which seems to be the one called to select the edit's text when the property "autoselect" is enabled. Results: Autoselect stopped working on Win32, even when "true", the text is not selected. On Win CE, nothing changed, whenever I tab to, or click outside from a Tedit, its text is selected ---------------------------------------------------------------------- BigChimp · 2012-11-18 08:38 Then you've probably edited the wrong file (yes, Captain Obvious here). Probably wince has a different include file, because it's a different widgetset (though similar) than win32 ---------------------------------------------------------------------- Rivello · 2012-11-18 16:48 Thank you for the reply. I searched all the files in the lcl folder and the few ones which have "autoselect" or "selectall" are in the lcl/include folder, which I supose its not for winCE. I also reported in bugtracker: http://mantis.freepascal.org/view.php?id=23345