View Single Post
Old 11-18-2017, 12:34 AM   #5
Human being with feelings
stw's Avatar
Join Date: Apr 2012
Posts: 248

Originally Posted by Bobflip View Post
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.

// bitmap1 and bitmap2 are bitmap pointers passed to the constructor
// mBitmap is the IBitmapControl member

void SetAuxBitmap(bool set = false)
		mBitmap = (set)? bitmap2 : bitmap1;
stw is offline   Reply With Quote