InExcludeData Help
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/10/2007 at 10:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.506
Platform: Windows ;
Language(s) : C++ ;---------
Hey Guys,
I have an InExcludeCustomGui in my dialog and I can find the custom gui with the FindCustomGui function of GeDialog. But no matter what I do I cannot get the InExcludeData to actually access the gui element. I have done an extensive search in the archives to try and resolve this, but the data returned is always NULL. Here is the code I have so far:InExcludeCustomGui *objectInExclude = (InExcludeCustomGui* )FindCustomGui(IDC_PLATINUMOB_OBJ_INEXCLUDE, CUSTOMGUI_INEXCLUDE_LIST); GeData *newdata = NULL; if(objectInExclude) { BaseContainer *bc = objectInExclude->GetData().GetValue().GetContainer(); //bc is always returned as null if(bc) newData = bc->SetData(IDC_PLATINUMOB_OBJ_INEXCLUDE, GeData(CUSTOMDATATYPE_INEXCLUDE_LIST, DEFAULTVALUE)); } BaseContainer *listData = NULL; InExludeData *inexData = NULL; if(newData) { listData = newData->GetContainer(); inexData = (InExcludeData* )listData->GetCustomDataType(IDC_PLATINUMOB_OBJ_INEXCLUDE, CUSTOMDATATYPE_INEXCLUDE_LIST); if(inexData) { GePrint("Found Data"); }else { GePrint("No data found"); } }
Do I need to attach the InExcludeCustomGui to the dialog somehow? I used ResEdit for the GUI part of the dialog. But the weird thing is that FindCustomGui returns the correct pointer. As always any help with this issue is very much appreciated.
Josh