Re: to David Cuny or Derek Parnell from Argentina
I just had a program where I needed this functionality. First, create
your ListView as an extended control with the following flags:
constant MainLogList = createEx(ListView,{"QSO
#","Callsign","Date","Time",
"Band","Freq","Mode","Tx RST","Rx RST","Grid","Name","QTH"},
GorWin,10,220,610,170,or_all({LVS_REPORT, LVS_SHOWSELALWAYS}),
or_all({LVS_EX_FULLROWSELECT}))
Then, to select the row, simply do this to select:
setLVItem(MainLogList, LVIF_STATE, rownum, 0, 1, LVIS_SELECTED, 0, 0,
0)
and to deselect:
setLVItem(MainLogList, LVIF_STATE, rownum, 0, 0, LVIS_SELECTED, 0, 0,
0)
HTH,
Michael J. Sabal
>>> machobus1 at hotmail.com 01/31/03 04:33PM >>>
Hi... I'm Gustavo Bottegoni, from Argentina... i had a problem while i
was
programming with win32lib...
i'm making a database to my uncle, who sells car parts... well... i was
mading "search" button, so i find the index where the object is
ubicated,
but... when i try so 'select' it... i can't.. i failed trying...
do u understand what i mean? i try to select it like doing a click,
select
it and mark it in blue...
i tried with setIndex() but it's not accepted in a ListView...
well.. in case u made it possible to me.. thanks...
Gustavo...
TOPICA - Start your own email discussion group. FREE!
|
Not Categorized, Please Help
|
|