Font color DBLookupComboBox lazarus / 31-LCL ---------------------------------------------------------------------- JanRoza · 2010-08-16 10:56 When I change the font color of a TDBLookupComboBox the font shown in the edit box indeed has the new color, but the pulldown list still has its black font color. Does anyone know how to give the font in the list the same color as shown in the edit box (or is there another - third party - control that has this ability)? Jan ---------------------------------------------------------------------- JanRoza · 2010-08-19 11:23 Doesn't anyone has any ideas???? ---------------------------------------------------------------------- felipemdc · 2010-08-19 12:32 First of all: http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_t he_correct_way_to_ask_questions_in_the_forum_.3F For me it worked with the standard TComboBox with Lazarus 0.9.29 on win32. Maybe you need to update your Lazarus. ---------------------------------------------------------------------- JanRoza · 2010-08-19 21:50 I'm using the latest stable version 0.9.28.3 on one computer and yesterdays snapshot 0.9.29 version on another (both running on Windows 7) and in both versions the edit box part of the dblookupcombobox shows the correct font color but the dropdown part shows black font color. So it's not a matter of upgrading Lazarus. What operating system does your correct showing combobox run? Maybe it works on Linux but not on Windows? Jan ---------------------------------------------------------------------- JanRoza · 2010-08-22 18:15 Still no one any ideas or suggestions? ---------------------------------------------------------------------- theo · 2010-08-22 19:16 Quote from: JanRoza on August 22, 2010, 08:15:05 pmStill no one any ideas or suggestions? Suggestion 1: Leave the color as it is like all professionial software does. Suggention 2: Use OnDrawItem event to paint it yourself (Set Style to csOwnerDrawFixed) ---------------------------------------------------------------------- JanRoza · 2010-08-22 21:35 Even professional software uses colored fonts when it's functional so suggestion #1 is not an option. I think having two colors in one component is what look unprofessional. Suggestion #2 is worth trying so I'll go that way. Still I think that selecting a font color in a component should do what it is supposed to do for the whole component and not just half. A workaround should not be necessary. The component I use in Delphi works correctly, so I expected the corresponding component in Lazarus to do the same. Is it not a bug if the box font does change color and the dropdown font doesn't? I know it's just a minor snag but in a program as good and professional as Lazarus there should be as little snags as possible. ---------------------------------------------------------------------- theo · 2010-08-22 22:12 Quote from: JanRoza on August 22, 2010, 11:35:12 pmStill I think that selecting a font color in a component should do what it is supposed to do for the whole component and not just half. A workaround should not be necessary. You could implement this feature and create a patch for the LCL. Please test on all supported widget sets. http://wiki.lazarus.freepascal.org/Creating_A_Patch