An EnsureVisible method for a BarItem would be really sweet (or it could be an optional parameter for the SelectItem method). It would:
a) select the Bar if not currently selected
b) scroll to the right viewport (see below)
c) and then select the BarItem
The current control is limited in that there's no way to programmatically force the ListBar to scroll to a selected BarItem.
Example: If you have a ListBar with many bars and baritems, for advanced users, you'd like to allow em to right click or something to quickly jump to a particular item (say baritem # 10, and you currently have 1-5 displayed) You can't do that right now - you would be able to get the BarItem click event to fire, the listbar would believe it had selected an item, but visually it would still display 1-5...
|
Added an EnsureVisible method for to the cListBarItem class. To make sure the correct bar is selected, just call SelectBar. |