On 26/12/2013 at 03:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ;
Language(s) : C++ ;
---------
I have a dialog with a TexturenameCustomGui.
It is all working perfectly. I can Drop&drag or selecting is ok, but init the field does not work.
SetString or SetFilename does not work.
I think the field (ID_HDR1) is updated, but not displayed.
So, how to tell cinema to display / show the value?
Bool MainDialog::CreateLayout(void)
{
GroupBegin(2001, BFH_SCALEFIT, 2, 0, "Layer Shader", 0,600,0); //initial width = 600
{
GroupBegin(ID_FOLD1, BFH_LEFT | BFV_TOP, 1, 0, "Fold/Unfold", 0,0,0);
AddArrowButton(ID_ARROWHDR1, BFH_LEFT | BFV_TOP, 0,0, ARROW_RIGHT);
GroupEnd();
BaseContainer textgui; //image + icon below
myHDR1 = (TexturenameCustomGui* )AddCustomGui(ID_HDR1, CUSTOMGUI_TEXTURENAME, "", BFH_SCALEFIT, 0, 0, textgui);
}
GroupEnd();
return true;
}
Bool MainDialog::InitValues(void)
{
foldStatus1 = true;
myHDR1->SetLayoutMode(LAYOUTMODE_MINIMIZED); //initially folded
//Filename fname = "c:/temp/rgb32.hdr";
//SetFilename(ID_HDR1, fname);
String fname = "c:/temp/rgb32.hdr"; // result is not shown in cinema
SetString(ID_HDR1, fname);
return true;
}