Value and ValueSource

Hi, is there any way to customise the Value system with a different ValueSource implementation other than the provided SimpleValueSource?

I wan’t to replace the operation with a synchronous version under some circumstances but can’t see an obvious way to to this.

thanks

So after looking through the class it does appear as though it’s designed in a way to allow this to happen. The only way I could see of getting my own ValueSource in there is with this:

    Value my_value( new MySimpleValueSource() );
    getValueObject() = std::move( my_value );;

MySimpleValueSource is a copy of the provided SimpleValueSource class, and the above code is placed in the constructor of my Slider derived class.

However, values update in one direction and not the other, so there must be something else that needs doing?

tyhanks