ofxUI - sortablelist question

First, a big thankyou for openframeworks and all their developers. OF rocks!!!

I’ll keep it short… the app i’m working on could use a (movie) playlist, preferably rearrangable by the user.
OfxUI provides a SortableList widget which i intended to use but the AllWidgets example shows that no events are returned on a reordering of the list. So, either I’m doing something wrong or the widget is not designed to be used like this? Hopefully someone here could clarify this or maybe can suggest another approach?

Any help is appreciated, thanks!


I can see that there is no triggerEvent() calls in the ofxUISortableList code. Look like this widget don’t dispatch events.
You can modify ofxUISortableList.cpp like this :

void ofxUISortableList::mouseReleased(int x, int y, int button)
    activeWidgetIndex = -1;
    bool trigger = activeWidget;
    activeWidget = 0;
    if( trigger ) triggerEvent(this);

Now the list trigger an event when the mouse is released. Not exactly what you’re looking for, but that’s a start.

Yes! The widget returns the event now, just what I needed.
Thank you, lilive.