TComboBox re: Bug 0020950 lazarus / 31-LCL ---------------------------------------------------------------------- Dr.Theopolis · 2013-02-03 00:30 Would you be so kind as to try this on Windows (Lazarus 1.0.4, FPC 2.6): Put a combo box on a form Put one other control so you can exit from the combobox Set autodropdown to true Put some items in the items run it Type something in the combobox that is not in the list of items Tab away, you can see what you type stays there. Go back and select one of the items drom the drop down. Now go back and try to replace what you selected with something you type in that is not in the drop down list. Tab away or click away. The value you type will not stay. This doesn't happen if autodropdown is false, and it doesn't happen in OSX. I don't think I've ever found a bug, it's usually something I'm doing wrong. What am I doing wrong? or is it this the bug I mentioned in the title. ---------------------------------------------------------------------- BigChimp · 2013-02-03 11:20 Hi, thanks for reporting this problem. Please specify your Lazarus version and operating system version (see my signature) On Windows Vista x64 with Lazarus x86 trunk (r39547), fpc 2.6.1 I see different behaviour: Quote from: Dr.Theopolis on February 03, 2013, 01:30:13 amTab away, you can see what you type stays there. Yep, see that here too Quote from: Dr.Theopolis on February 03, 2013, 01:30:13 amGo back and select one of the items drom the drop down. Now go back and try to replace what you selected with something you type in that is not in the drop down list. Tab away or click away. The value you type will not stay. I tabbed away into a textbox and the value stayed. Quote from: Dr.Theopolis on February 03, 2013, 01:30:13 amThis doesn't happen if autodropdown is false, and it doesn't happen in OSX. I don't think I've ever found a bug, it's usually something I'm doing wrong. What am I doing wrong? or is it this the bug I mentioned in the title. I think it only makes sense to report this if you are using a recent Lazarus version from trunk (or perhaps the latest stable version... if somebody thinks the issue is serious enough that a fix will need to be backported). As said, please report your Laz version. ---------------------------------------------------------------------- BigChimp · 2013-02-03 11:23 Also, it's often handy to attach a small zipped sample project to your post (e.g. via menu Project/Publish project so only the source files get included). If necessary, this project can also serve for the devs to reproduce/test when submitting a bug report. Hope the attached project is what you have in mind... ---------------------------------------------------------------------- Dr.Theopolis · 2013-02-04 19:57 Thanks for looking at this issue Big Chimp. That is so nice of you! Your attached project does the same thing I described in my first post. I spent hours and hours searching for a solution, tracing through source code, and trial and error. I could not find where in the source code the control's text property was being written to with the last drop-down item I chose after I typed something new in the edit box. But at some point I realized that this behavior only happens when I type in the edit box while the drop-down list is dropped down. So in order to work around the problem, I put in combox1.droppeddown := false in the OnKeyDown handler. As mentioned in my first post, I am using the latest stable, Laz 1.0.4+FPC2.6.0. Additional info: Windows 7 32bit sp1, and OSX 10.7.4 i386 Carbon. Since I have a work around I do not wish to give this problem any more hours of my time. A dozen is my limit for little issues. ---------------------------------------------------------------------- BigChimp · 2013-02-05 07:13 Oops, sorry about the version, had overlooked it. And a dozen hours seems... quite generous Hope perhaps the newly released 1.0.6. fixes it for you.