Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Index of top item in combo dropdown list???

0 views
Skip to first unread message

ko...@no.spam.techwin.be

unread,
Jun 18, 2002, 10:12:21 AM6/18/02
to
I want to know the itemindex of the top item displayed in the list when
my combo drops open.. There is no TopIndex property and I cannot find
a window message that does the trick..
Anybody any ideas..

Regards,
Koen

Mike Williams

unread,
Jun 18, 2002, 10:20:57 AM6/18/02
to
> I want to know the itemindex of the top item displayed in the list when
> my combo drops open.. There is no TopIndex property and I cannot find
> a window message that does the trick..

I'm confused; isn't the top item always index 0 (until you scroll down)?

-Mike


Brian

unread,
Jun 18, 2002, 10:28:22 AM6/18/02
to

The first item in the drop down in a combobox is itemIndex = 0. When
nothing is selected the itemIndex = -1.

Peter Below (TeamB)

unread,
Jun 18, 2002, 12:58:48 PM6/18/02
to
In article <3d0f3f8c_2@dnews>, wrote:
> I want to know the itemindex of the top item displayed in the list when
> my combo drops open.. There is no TopIndex property and I cannot find
> a window message that does the trick..

The dropdown always opens with the scrollbar in the top position, no? So
the first item is always Items[0].


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be


Koen Verbeeck

unread,
Jun 18, 2002, 5:38:03 PM6/18/02
to
When the user starts scrolling the top item is no longer item 0.
(in case Items.Count > DropDownCount)

Koen

"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.00008d1...@antispam.compuserve.com...

Peter Below (TeamB)

unread,
Jun 19, 2002, 7:51:55 AM6/19/02
to
In article <3d0f989d$1_1@dnews>, Koen Verbeeck wrote:
>
> When the user starts scrolling the top item is no longer item 0.
> (in case Items.Count > DropDownCount)

True, but that wasn't the question.

> > > I want to know the itemindex of the top item displayed in the list when
> > > my combo drops open..

I interpret that as "what is the top index when the dropdown opens".

Koen Verbeeck

unread,
Jun 19, 2002, 4:35:11 PM6/19/02
to

"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.00008d2...@antispam.compuserve.com...

You are right, I put it wrong. If only there was a dutch delphi newsgroup..

Koen


0 new messages