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

item position in a list box

0 views
Skip to first unread message

A. Bin Talal

unread,
May 25, 2001, 3:36:45 PM5/25/01
to
How can I find the position of the selected item in a list box? I want the
top of the item rectangle, I need this to place an edit over it, I tried
using the itemheight and itemindex, but this doesn't work with a scrolled
down list box!! thanks for your help.

ABT
----------------------------------------------------------------
http://elektron.its.tudelft.nl/~tw017143/


David Lively

unread,
May 25, 2001, 4:35:11 PM5/25/01
to
You can use the method you mentioned, but also take into account the value
of the ViewOrigin property (which indicates how far in each direction, in
pixels, the view has been scrolled).


"A. Bin Talal" <Aq...@yahoo.com> wrote in message news:3b0eb45c_2@dnews...

A. Bin Talal

unread,
May 25, 2001, 5:29:37 PM5/25/01
to
ViewOrigin is a property of TListView and not TListBox!!! thanks
anyway......


"David Lively" <dav...@keil.com> wrote in message news:3b0ec1fe$1_1@dnews...

A. Bin Talal

unread,
May 26, 2001, 7:32:55 AM5/26/01
to
ViewOrigin is a property of TListView and not TListBox!!! thanks
anyway......


"David Lively" <dav...@keil.com> wrote in message news:3b0ec1fe$1_1@dnews...

A. Bin Talal

unread,
May 26, 2001, 7:30:22 AM5/26/01
to
ViewOrigin is a property of TListView and not TListBox!!! thanks
anyway......

"David Lively" <dav...@keil.com> wrote in message news:3b0ec1fe$1_1@dnews...

A. Bin Talal

unread,
May 26, 2001, 8:15:21 AM5/26/01
to
I solved, thanks.

"A. Bin Talal" <Aq...@yahoo.com> wrote in message news:3b0eb45c_2@dnews...

0 new messages