within a Listbox is set the RowPicture via Listbox.Rowpicture(Index) = Lock. Lock is a blue Glyph. Now i want to change the Picture, if a Row with RowPicture <> Nil is selected, to Listbox.Rowpicture(Index) = LockWhite. Otherwise i can’t see the blue Glyph. Notice, not all Rows has a RowPicture!
'Normal State
Listbox.Rowpicture(Index) = Lock
'Selected State
Listbox.Rowpicture(Index) = LockWhite
If MyListBox.Selected(Index) <> True And MyListBox.RowTag(Index) <> Nil Then
Listbox.Rowpicture(Index) = Lock
ElseIf MyListBox.RowTag(Index) <> Nil Then
Listbox.Rowpicture(Index) = LockWhite
End If