I am trying to build a GUI on c4d but I am having problems with the description class.
Below I have Created 1 group with two columns and I am trying to add a static text using the description and BaseContainer class but the text is not showing on my gui. I also used AddCustomGui but that didn't give any result too. Is there any change that I should do to the code to make it work.
Thank you in advance.
GroupBegin(GROUP_ID_PIXEL_SAMPLE + _dialogIdx, BFH_SCALEFIT | BFV_TOP, 2, 0, String(), 0, 0); GroupBorderSpace(20, 0, 10, 0); AddStaticText(ID_PIXEL_SAMPLE_SLIDER , BFH_LEFT | BFV_TOP, 220, 0, "First Text"_s, BORDER_WITH_TITLE_MONO); AutoAlloc<Description> description; DescID cid = DescID(DescLevel(56464, DTYPE_STATICTEXT, 0)); BaseContainer settings = GetCustomDataTypeDefault(DTYPE_STATICTEXT); AutoAlloc<Description> description; settings.SetString(DESC_NAME, "Not Working Text"_s); settings.SetInt32(DESC_SCALEH, 1); settings.SetBool(DESC_NEWLINE, true); description->SetParameter(cid, settings, DESCID_ROOT); GroupEnd();