I’ve tinkered with widget making, but never felt I was doing it right.
Today I had a familiar problem: I needed a multi-value toggle button, so I made one by deriving from SvgButton. That was fine.
Then I wanted it to be a ParamWidget so my button can control a param. I ended up deriving a new class from ParamWidget, embedding an instance of my button in it as a member variable, then make it work by a bunch of ugly code to delegate things between my param widget and the widget that it encapsulate.
In the v0.6 day perhaps I could have used virtual inheritance to have mywidget drive from param widget and SVGSwitch?
Is there a “good” way to turn a UI widget into a param widget?