hello atom i found a problem when i copy a component with mouse “copy” and when i paste it (with mouse ) it keep the same vst index number , i d’ont know if it’s normal …..
when i copy the same component with the menu on the top “edit” “copy” and “edit” “paste” the vst number change ………..
according to this i have added that line in ctrlpanelcanvas.cpp :
void CtrlrPanelCanvas::editMenuPaste(const MouseEvent &e)
{
ValueTree clipboardTree = valueTreeFromXml (SystemClipboard::getTextFromClipboard());
if (clipboardTree.hasType (Ids::uiPanelClipboardTree))
{
emptyGroupping (clipboardTree);
Rectangle list = VAR2RECT (clipboardTree.getProperty(“selectionRect”));
const int deltaX = e.x – list.getX();
const int deltaY = e.y – list.getY();
for (int i=0; isetTopLeftPosition (c->getX()+deltaX, c->getY()+deltaY);
///////////////////////KAMDER ADD THIS FROM THE PASTE EDIT MENU ///////////////////////////////////////
c->getOwner().setProperty (Ids::vstIndex, owner.getOwner().getOwner().getVstManager().getFirstFree());
///////////////////////////////////////////////////////////////////////////////////////////////////////
}
}
enjoy the fix !!!!!!!