Discussion:
Listview question.
(too old to reply)
Anonymous
2007-03-12 20:40:39 UTC
Permalink
Hello,

I have a Listview (PB 8.03) which scrolls while a search is performed. So
far it's ok, but if the user wants to perform a second search, how do I make
the first n items in the control visible, so the scrolling can start over
again?

Thanks for your attention!
--
Michael Mattias
2007-03-12 21:06:07 UTC
Permalink
Post by Anonymous
Hello,
I have a Listview (PB 8.03) which scrolls while a search is performed. So
far it's ok, but if the user wants to perform a second search, how do I
make the first n items in the control visible, so the scrolling can start
over again?
Listview_EnsureVisible, hCtrl, 0&

MCM
Anonymous
2007-03-12 21:41:33 UTC
Permalink
Hello agian,

Many thanks for pointing me to that function. After correcting it to lResult
= Listview_EnsureVisible(hListViewStat,1,%FALSE)
it works like a charm - I hope that is a correct expression..
--
Post by Michael Mattias
Post by Anonymous
Hello,
I have a Listview (PB 8.03) which scrolls while a search is performed. So
far it's ok, but if the user wants to perform a second search, how do I
make the first n items in the control visible, so the scrolling can start
over again?
Listview_EnsureVisible, hCtrl, 0&
MCM
Michael Mattias
2007-03-12 21:57:54 UTC
Permalink
Post by Anonymous
Many thanks for pointing me to that function. After correcting it to
lResult = Listview_EnsureVisible(hListViewStat,1,%FALSE)
it works like a charm - I hope that is a correct expression..
I forgot the third param (partial visibility), but what do you want off the
top of my head?

That said, you really want param # 2 to be zero, as in "row zero", the
first logical row. If you use row number one (logical row two) , it's
possible your screen will have the first row scrolled out of view.

MCM

Loading...