Board index » cppbuilder » color of SELECTED item in listbox
Claus O Christens
![]() CBuilder Developer |
Tue, 04 Feb 2003 03:00:00 GMT
color of SELECTED item in listbox
Hey all
Using the following code snippet, everything seems Okay : void __fastcall TMainForm::ListBDrawItem(TWinControl *Control, if (State.Contains(odSelected)) // if selected pCanvas->Font->Color = (TColor)(ListB->Items->Objects[Index]); Quote} is left around part of the previously selected item. The rectangle-lines are erased around the text, but if the text do not fill a complete line in the listbox, the "text-free" area continues to have the remainings from the rectangle. How do I avoid this ? Best regards |