LAMW: Change jComboEditText Dropdown font color/Background color lazarus / 43-Android ---------------------------------------------------------------------- c4p · 2017-09-17 12:14 Is there a method to change the font color/background color on jComboEditText component? Can't find one for it other than Font color/background for the edit box, not the dropdown font color/background color? Thanks in advance. ---------------------------------------------------------------------- wp · 2017-09-17 12:31 You can draw the items using the OwnerDraw mechanism: Set Combobox.Style to csOwnerDrawfixed or csOwnerDrawVariable - in the latter case you also can vary the item height by using OnMeasureItem - and write a handler for the OnDrawItem event, like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.ComboBox1DrawItem(Control: TWinControl; Index: Integer;  ARect: TRect; State: TOwnerDrawState);begin  with Control as TCombobox do begin    Canvas.FillRect(ARect);    if DroppedDown then      Canvas.Font.Color := clRed;    Canvas.TextOut(ARect.Left + 2, ARect.Top + 2, Items[Index]);  end;end; ---------------------------------------------------------------------- c4p · 2017-09-17 12:46 Will this work on the LAMW jComboEditText component? ---------------------------------------------------------------------- wp · 2017-09-17 13:12 Sorry, I did not see the "j". But why don't you try? ---------------------------------------------------------------------- c4p · 2017-09-17 13:50 Already did, was just checking.  Thanks anyway. ---------------------------------------------------------------------- jmpessoa · 2017-09-19 01:06 Hi c4p! About: Quotedropdown font color/background color? I will improve "jComboEditText" ... Thank you! Edited: Done!!!! ---------------------------------------------------------------------- c4p · 2017-09-19 07:29 Working perfect, thank you so much jmpessoa