Quote:
Originally Posted by Tunca
Absolutely, i need advice, too!
Even, i can't add background as .png. And examples don't show it.
At the moment, i talking with someone from forum. If i sort it, i will share info.
|
Hi,
This is a sample of code that I have made, I put here important parts.
#define BACKGROUND_FN "2RuleFilterNewBack2.png"
#define KNOB_FN "knob_med.png"
#define SLIDE_FN "hslider_med2.png"
#define BUTTON_FN "button_sm.png"
.
.
mLayoutFunc = [&](IGraphics* pGraphics) {
pGraphics->AttachBackground( BACKGROUND_FN);
IBitmap knobBitMap = pGraphics->LoadBitmap(KNOB_FN, 63, FALSE,2);
IBitmap switchBitMap = pGraphics->LoadBitmap(SLIDE_FN, 3,TRUE,3);
IBitmap buttonBitMap = pGraphics->LoadBitmap(BUTTON_FN, 2,FALSE,3);
.
.
control = new IBKnobControl( parameterProperties[i].x, parameterProperties[i].y, knobBitMap, parameterProperties[i].ID);
pGraphics->AttachControl(control);
};
But my problem is different. I always to try to guess the coordinate x, y of the gui components , and compile the code and see if it is correct :-) It takes time to find the correct x,y coordinate :-)