TComboBox Drop Down List problem lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- justapps · 2012-04-16 15:16 I'm using Lazarus 0.9.31 and FPC 2.6.0 on a MacBook with Lion 10.7.3. Sometimes as I tab from a TComboBox to the control, the combo's drop down list will appear.  It seems to happen when you type in the combo quickly and quickly tab.  Any suggestions to get around this? As you can see in the attachment, if the next field is below the combo, it be be obscured. ---------------------------------------------------------------------- jwdietrich · 2012-04-17 06:41 I cannot reproduce the problem in one of my applications that also uses a number of comboboxes and text fields. Do you have any weird settings in the comboboxes? You might try to make a simple demo application from scratch that contains only comboboxes and edit fields without any modifications (apart from tab index). This step might help in isolating the cause of the problem. ---------------------------------------------------------------------- justapps · 2012-04-17 12:43 I updated Lazarus to 1.1 SVN Revision 36803 I made a new application with 2 comboboxes I just edited the Items property and added 10 liness Now I run the app and put my cursor in the combobox and begin typing and then I tab while typing.  The focus goes to the next combobox and the first combobox closes the drop down but then quickly opens the drop down list again.  I have changed no settings in the comboboxes Brent ---------------------------------------------------------------------- BigChimp · 2012-04-17 13:01 If it's not reported in the bugtracker already, reporting it together with your platform, version etc, and your sample program would be nice. Perhaps you'd be willing to upload your sample program here though so the people reading the thread can first take a look? ---------------------------------------------------------------------- justapps · 2012-04-17 13:53 I reported it yesterday, but he project is attached.  Run the program and begin typing in combobox and then tab while typing That is the way to always make it happen.  I can reproduce the problem on two different Macs so it looks like a glitch, but if someone can offer a workaround I'd appreciate it. ---------------------------------------------------------------------- jwdietrich · 2012-04-17 17:34 I tested your app and I think that most of the behaviour that annoys you is a feature and not a bug. If I enter e.g. "2" the combobox pulls down, showing the entry "2". What is definitively a bug, however, is the fact that the "2" is shown but not selected. Moreover, it might at least in some situations be better if the combobox wouldn't pull down if anything is entered that is not an entry of the default items (e.g. "a" with your application). To summarize this, the following behaviour would be expected: If a string is entered that coincides with an item the combo box pulls down and selects this item.If anything else is entered this entry is inserted into the edit field but the combo box doesn't pull down. ---------------------------------------------------------------------- justapps · 2012-04-17 18:18 My issue is not the dropping down while the cursor is in the combobox but rather the fact that when I tab to go to the next control the drop down list should close up.  Simultaneously press "Tab" one time while typing in the combo box I actually love the way the control works otherwise. ---------------------------------------------------------------------- jwdietrich · 2012-04-18 06:27 Quote from: justapps on April 17, 2012, 08:18:49 pmMy issue is not the dropping down while the cursor is in the combobox but rather the fact that when I tab to go to the next control the drop down list should close up.  Simultaneously press "Tab" one time while typing in the combo box I cannot reproduce this problem (your code, Lazarus 0.9.30.4, Mac OS X 10.5.8, PPC processor). The menu closes in the moment as I press Tab. ---------------------------------------------------------------------- justapps · 2012-04-18 13:18 Here is a video of me typing and tabbing Do you see how the other control gets focus?  Combo box closes briefly and reopens http://youtu.be/gGCTDiaOZX0 ---------------------------------------------------------------------- jwdietrich · 2012-04-19 06:46 Quote from: justapps on April 18, 2012, 03:18:49 pmHere is a video of me typing and tabbing Do you see how the other control gets focus?  Combo box closes briefly and reopens http://youtu.be/gGCTDiaOZX0 OK, I see, but I cannot reproduce the problem here. Are you sure that your components use standard parameters and that you haven't any exotic settings in the operating system preferences? ---------------------------------------------------------------------- justapps · 2012-04-19 13:00 It is the latest version of Lion 10.7.3 and on 2 different systems.  No, there aren't any special settings.  Does anyone have code that I could use onexit for the comboboxes that might work?