What's wrong with TListBox and Mpuse On/Mouse Off? lazarus / 31-LCL ---------------------------------------------------------------------- jipété · 2024-09-20 06:43 Hi, I put a TListBox on a TPanel with alClient, I change his .Color property to Yellow, I add 3 items in FormCreate, F9 it's ok BUT if I move the mouse outside of the TListBox, it's becomes strange. See attached image. Is it me or is it the TListBox object ? Thanks, Linux Debian 11.9, FPC 3.2.2 Laz 3.4 ---------------------------------------------------------------------- zeljko · 2024-09-20 07:48 It is about gtk2 theme, not about listbox. ---------------------------------------------------------------------- dsiders · 2024-09-20 07:49 Quote from: jipété on September 20, 2024, 08:43:11 amHi, I put a TListBox on a TPanel with alClient, I change his .Color property to Yellow, I add 3 items in FormCreate, F9 it's ok BUT if I move the mouse outside of the TListBox, it's becomes strange. See attached image. Is it me or is it the TListBox object ? Linux Debian 11.9, FPC 3.2.2 Laz 3.4 Looks like your theme displays the text for the current selection in white. White text on a yelolow background is always going to be a problem. ---------------------------------------------------------------------- jipété · 2024-09-20 08:53 Thanks for the replies. Anyway, when the mouse is off, where is the selected color ? The text stays selected, more or less (look at the medley white-gray in the bottom of the LB, see attached image) but the rectangle disappears... If I remember correctly there is an option in the ShellTreeView (HideSelection) to keep lhe selection bar, why not in the ListBox ? Maybe I'll follow the stv's road...