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

Quote:
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.

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();
	}
stw is offline   Reply With Quote