Thanks for sharing this, it was the inspiration I needed to start porting some of YannickL’s “CCControlExtension” classes to cocos2d-x! One of the problems I found with the CCMenuItemSlider class above is that you use a separate menu class to hold the sliders (to detect and process touches), while YannickL’s approach is to allow each control to do the processing of the touches. For that purpose, I created a “passive” menu, which is simply a container, without any processing of touches (but this is not essential)
The result is a set of controls that extend from CCLayer and CCRGBAProtocol that can be put in a menu. You can have a look here: http://www.cocos2d-x.org/boards/6/topics/8335
I hope eventually they can get integrated into the extensions repo!