Board index » cppbuilder » Using TListBox->TopIndex property instead of TListBox->Selected
Victor Hanna
![]() CBuilder Developer |
Tue, 04 Jun 2002 03:00:00 GMT
Using TListBox->TopIndex property instead of TListBox->Selected
I have created a TListBox component that has a list of numbers from 1 to
10. I want the user to be able to select a number just by scrolling the box up or down, rather than actually highlighting a number. So, I have used the IntegralHeight property to show just one number at a time, and then I use the TopIndex property to figure out which number is showing. This works fine, except that the user can still click on a number and highlight it (which I don't want him to be able to do). I thought about placing a transparent panel overlaying the text portion Thanks |