Hi!
If a ListView control losts focus the background color of the selected item changes. It gets the same color as a not selected item.
Can I avoid this behavior?
Best regards
Timm
Code: Select all
METHOD ListView1DrawCell( oSender, oItem, nColumn, nClrText, nClrPane, hDC, aRect ) CLASS TForm1
LOCAL oFocusItem
oFocusItem := ::oListView1:GetFocused()
IF oFocusItem <> NIL .and. oItem == oFocusItem
nClrText := CLR_HGREEN
nClrPane := CLR_GREEN
RETURN 1
ENDIF
RETURN NIL