THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/08/2003 at 09:21, xxxxxxxx wrote:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
still wrestling with descriptions ... But this here is most probably the last problem.
I'm adding parameters to a description via something like:
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_REAL);
bc.SetBool(DESC_ANIMATE, DESC_ANIMATE_ON); // works!
bc.SetString(DESC_SHORT_NAME, "foobar"); // works!
bc.SetBool(DESC_EDITABLE, FALSE); // ????????
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_REALSLIDER); // works!
isOK = description->SetParameter(DescLevel(20000, DTYPE_REAL, 0), bc, DescLevel(ID_MY_GROUP));
I hoped that setting DESC_EDITABLE to FALSE switches the parameter to readonly, but it can still be edited.
Thanks in advance,
On 04/08/2003 at 17:15, xxxxxxxx wrote:
hmm, it works fine for me here. It´s not editable. You know that when it´s "not editable" it does only mean that "Edit Entry" is ghosted in the popupmenu don´t you?
On 05/08/2003 at 00:22, xxxxxxxx wrote:
Arrrrrgh!! Actually I've hoped that DESC_EDITABLE makes a parameter non-editable in _every_ way. Seems I have to rethink my approach.
Thank you nonetheless!
On 05/08/2003 at 02:41, xxxxxxxx wrote:
no that´s not possible for an Attributes Manager element always needs to have a popup that ensures for example that the element can be animated (keyframed) which is done via this popup.
On 05/08/2003 at 02:51, xxxxxxxx wrote:
no, I'm not worrying much about the popup menu. I rather want the displayed number/color/string/whatever of the parameter not to be editable by direct clicking/dragging/typing. Maybe the parameter should in addition be shown in gray instead of black.
On 05/08/2003 at 02:56, xxxxxxxx wrote:
well the name itself cannot be greyed out independantly. You would need to grey out the whole element (so name and the slider for example). You can do so by overloading GetDEnabling and return either TRUE or FALSE.