Hello everyone,
I’m stuck in my code, on a call to the function CurrentSelection() from BListView.
This function is supposed to return an index corresponding to that of the selected item. But the value I get is not the one I would like to have (something like ‘17680’ instead of 'what i suppose to obtain : ‘4’, namely, the one I can retrieve using ItemAt(i) from BListView.
i = BlistDir->CurrentSelection(i);
std::cout << "i = " << i << std::endl;
bListIt = BlistDir->ItemAt(i);
BrwEl* Eli = (BrwEl*)BlistDir->ItemAt(i);
Does anyone know this part of the Haiku api ? and may help me ?
I’m really embarrassed and I hope I’m not bothering you with my newbie problems.