Selection of previous element

T

Tomas S. Refsland

I designed a form with a ListViewCtrl-element. At the top it shows the still
selectable elements,
at the bottom the selected items. Then I try to position the cursor in the
selection area exactly
at the place where the last element was selected. My questions are:

I know the element that is selected, but I want to know the element before
it (because the selected
element isn't in the list anymore). Then I can select it (Item.Selected =
True). Then I want to position
the window of the list, (I hope you understand what I mean), right there
where the selected element
has been positioned in the list. So...

a) find the element before the selected element

b) position the list-window.


Thanks a lot for your help.
Tomas S. Refsland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top