On 16/05/2015 at 20:49, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
I'm scrapping a node gui system I created to try using the xpresso system. I'm wanting to put this into a GeDialog, but I'm not finding anything that straight out and out explains how to do it. Is someone able to look at the following and guide me as appropriate?
// dialog class level objects GvShape *shape; GvShape *group; GvNodeGUI *nodeGUI; GvNodeMaster *nodeMaster; C4DGadget *XpressoGadget; //<--- do I need this? // dialog constructor shape = GvGetWorld()->AllocShape(); group = GvGetWorld()->AllocGroupShape(); nodeGUI = GvGetWorld()->AllocNodeGUI(shape,group,DLG_EXPERIMENTAL_XPRESSO); nodeMaster = GvGetWorld()->AllocNodeMaster(NULL,TRUE,FALSE); // createlayout() nodeGUI->Attach(this,nodeMaster); XpressoGadget = AddUserArea(DLG_EXPERIMENTAL_XPRESSO,BFH_SCALEFIT|BFV_SCALEFIT); AttachUserArea(*nodeGUI->GetUserArea(),XpressoGadget,USERAREA_TABSTOP|USERAREA_HANDLEFOCUS);
Apart from variations to the above, that's where I've ended up. I'll be needing to create my own nodes themselves at some stage, but before I tread that path I need to see the thing display in the dialog! Where am I tripping up here? Cheers,