I often use component QListView - is very good for manipulating with data. But one thing makes me trouble. If I set 'QListView.ItemIndex' e.g. on value '2' (3. row), and then I press key DOWN, QListView does not jump on next row (4.), but on first row. That's bad, because this function (setting ItemIndex) is very useful after searching data in ListView... It seems, that ItemIndex make jump on a good row, but inner event OnKeyPress (DOWN or UP) makes bug...
Very little example: ' -------------------
DIM frm AS QFORM, lvi AS QLISTVIEW
frm.center
lvi.PARENT = frm
lvi.align = 5
lvi.viewstyle = 3
lvi.gridlines = 1
lvi.addcolumns " Now press key DOWN for jump on 3. row"
lvi.column(0).width = 305
lvi.additems "0. row", "1. row", "2. row", "3. row"
lvi.itemindex = 2
lvi.rowselect = 1
frm.SHOWMODAL
' ------------------- How can I workaround this? Via SendMessage? Thank you. Slavo |