2009-01-26, 05:53 AM
jasonbs10 Wrote:Is "BaseButtonListUiTask.SelectedItem(Object o)" et al supposed to return the zeroth item on mouse movement? I'd like to know when a new item is selected by keyboard/mouse but this function appears to produce extraneous callbacks. I could go back to what I was doing before but it wasn't very clean.The SelectedItem() callback happens if the active selection in the list moves to a different item (whether mouse click or keyboard/remote event).
Quote:Also, I don't see a simple way to have the selected list item stay within a 'viewport' until the user scrolls to the top/bottom and has to display previously offscreen items. How is this done in other plugins (using the aforementioned base class)?I'm not sure what you mean. The selected item in the list is always visible, so the list will automatically scroll to show a new set of items if it needs to for the active selection to remain visible.