this.click()mylist.click()
local lnCnt select mytable for lnCnt = 1 to this.ListCount go record lnCnt if mytable.myfield this.picture(lnCnt) = [x.bmp] else this.picture(lnCnt) = [y.bmp] endif endforWhen I "click" the list on any item I get exactly what I want. Otherwise, each time the list is created, no pics until I "click".
this.selected(1) = .T.to highlight the first item works just fine. However, even placing the For loop in this.init() in addition to this.click() does not cause the pics to display until the mouse is used to "click" an item in the listbox.
this.list(listitemId).click()All I really want to have happen is a bmp shown next to each item based on logic when the listbox is created dynamically in code.