Quote:
Originally Posted by Bobflip
Been exploring but haven't got anything to work yet, is it possible to change the bitmap of a control such as an IKnobMultiControl, to allow the user to customise the interface?
|
As Youlean says it's easy if you do it in the constructor. You can change you IControl that way, that you pass more than one bitmap address. You can then simply change the selected bitmap in a addicted function. E.g. i use two alternative of knob controls in my current plug which works simply like that.
Code:
// bitmap1 and bitmap2 are bitmap pointers passed to the constructor
// mBitmap is the IBitmapControl member
void SetAuxBitmap(bool set = false)
{
mBitmap = (set)? bitmap2 : bitmap1;
Redraw();
}