Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / Bug in QListView?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Bug in QListView?
#6019
Posted by: OvalX 2005-04-05 18:27:00
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 'vsReport
 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
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥900.00 ·
 
 
¥810.00 ·
 
 
¥317.00 ·
 
 
¥1,370.00 ·
 
 
¥660.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0