Top of a listbox ?

Alles rund um das grafische Benutzerinterface Enigma
PentVaer
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Montag 8. März 2004, 08:50

Top of a listbox ?

Beitrag von PentVaer »

I've been trying to find a way to set the selection to the top item of a listbox,
after calling sort(). I tried several methods, including:

while ( listBoxPtr->goPrev() != 0 )
1;

That last one just looped endlessly (bug in goPrev code ?)

I expect there's a simple solution... can someone put me out of my misery
please, I spent two frustrating hours trying various ways to do this.

Thanks,

Pent
__Ghost__
Developer
Beiträge: 245
Registriert: Mittwoch 13. März 2002, 21:19

Beitrag von __Ghost__ »

Hi,

you can use the "moveSelection" Method with Parameter "eListBoxBase::dirFirst"

cu
PentVaer
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Montag 8. März 2004, 08:50

Beitrag von PentVaer »

__Ghost__ hat geschrieben:Hi,

you can use the "moveSelection" Method with Parameter "eListBoxBase::dirFirst"

cu
Perfect, thanks a lot.

Pent